Preferences/ConfigurationDialog.py

changeset 5920
e47dd106c3d6
parent 5912
b6643d36dddd
child 5949
22657f04f332
child 5967
da72832f7c22
equal deleted inserted replaced
5919:d0de2b378b24 5920:e47dd106c3d6
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 import os 12 import os
13 import types 13 import types
14 14
15 from PyQt5.QtCore import QMetaObject, pyqtSignal, Qt, QRect, pyqtSlot 15 from PyQt5.QtCore import pyqtSignal, pyqtSlot, PYQT_VERSION, Qt, QMetaObject, QRect
16 from PyQt5.QtGui import QPixmap 16 from PyQt5.QtGui import QPixmap
17 from PyQt5.QtWidgets import QSizePolicy, QSpacerItem, QWidget, QTreeWidget, \ 17 from PyQt5.QtWidgets import QSizePolicy, QSpacerItem, QWidget, QTreeWidget, \
18 QStackedWidget, QDialog, QSplitter, QScrollArea, QApplication, \ 18 QStackedWidget, QDialog, QSplitter, QScrollArea, QApplication, \
19 QDialogButtonBox, QFrame, QVBoxLayout, QTreeWidgetItem, QLabel 19 QDialogButtonBox, QFrame, QVBoxLayout, QTreeWidgetItem, QLabel
20 20
344 "HelpFlashCookieManagerPage", "0webBrowserPage", None], 344 "HelpFlashCookieManagerPage", "0webBrowserPage", None],
345 "helpVirusTotalPage": 345 "helpVirusTotalPage":
346 [self.tr("VirusTotal Interface"), "virustotal.png", 346 [self.tr("VirusTotal Interface"), "virustotal.png",
347 "HelpVirusTotalPage", "0webBrowserPage", None], 347 "HelpVirusTotalPage", "0webBrowserPage", None],
348 }) 348 })
349 if qVersionTuple() >= (5, 8, 0): 349 if qVersionTuple() >= (5, 8, 0) and PYQT_VERSION >= 0x50800:
350 self.configItems.update({ 350 self.configItems.update({
351 "webBrowserSpellCheckingPage": 351 "webBrowserSpellCheckingPage":
352 [self.tr("Spell checking"), 352 [self.tr("Spell checking"),
353 "preferences-spellchecking.png", 353 "preferences-spellchecking.png",
354 "WebBrowserSpellCheckingPage", "0webBrowserPage", 354 "WebBrowserSpellCheckingPage", "0webBrowserPage",
468 "helpVirusTotalPage": 468 "helpVirusTotalPage":
469 [self.tr("VirusTotal Interface"), "virustotal.png", 469 [self.tr("VirusTotal Interface"), "virustotal.png",
470 "HelpVirusTotalPage", None, None], 470 "HelpVirusTotalPage", None, None],
471 } 471 }
472 472
473 if qVersionTuple() >= (5, 8, 0): 473 if qVersionTuple() >= (5, 8, 0) and PYQT_VERSION >= 0x50800:
474 self.configItems.update({ 474 self.configItems.update({
475 "webBrowserSpellCheckingPage": 475 "webBrowserSpellCheckingPage":
476 [self.tr("Spell checking"), 476 [self.tr("Spell checking"),
477 "preferences-spellchecking.png", 477 "preferences-spellchecking.png",
478 "WebBrowserSpellCheckingPage", None, None], 478 "WebBrowserSpellCheckingPage", None, None],

eric ide

mercurial