mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 07:03:02 +02:00
Add a check for modern WebKit
This commit is contained in:
parent
a94539c32b
commit
bba659b852
1 changed files with 5 additions and 0 deletions
|
|
@ -282,3 +282,8 @@ def get_windows_user_locale_name():
|
|||
return None
|
||||
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…
Reference in a new issue