mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Add a check for modern WebKit
This commit is contained in:
parent
a94539c32b
commit
bba659b852
@ -282,3 +282,8 @@ def get_windows_user_locale_name():
|
|||||||
return None
|
return None
|
||||||
return u'_'.join(buf.value.split(u'-')[:2])
|
return u'_'.join(buf.value.split(u'-')[:2])
|
||||||
|
|
||||||
|
def is_modern_webkit():
|
||||||
|
# Check if we are using QtWebKit >= 2.3
|
||||||
|
from PyQt4.QtWebKit import qWebKitMajorVersion
|
||||||
|
return qWebKitMajorVersion() >= 537
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user