Preferences/ConfigurationDialog.py

branch
maintenance
changeset 5948
6f958d5765f4
parent 5765
39d8b26ff557
child 5949
22657f04f332
equal deleted inserted replaced
5937:cc296ba99a3f 5948:6f958d5765f4
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
235 [self.tr("Calltips"), "preferences-calltips.png", 235 [self.tr("Calltips"), "preferences-calltips.png",
236 "EditorCalltipsPage", "0editorPage", None], 236 "EditorCalltipsPage", "0editorPage", None],
237 "editorCalltipsQScintillaPage": 237 "editorCalltipsQScintillaPage":
238 [self.tr("QScintilla"), "qscintilla.png", 238 [self.tr("QScintilla"), "qscintilla.png",
239 "EditorCalltipsQScintillaPage", "editorCalltipsPage", None], 239 "EditorCalltipsQScintillaPage", "editorCalltipsPage", None],
240 "editorDocViewerPage":
241 [self.tr("Documentation Viewer"), "codeDocuViewer.png",
242 "EditorDocViewerPage", "0editorPage", None],
240 "editorGeneralPage": 243 "editorGeneralPage":
241 [self.tr("General"), "preferences-general.png", 244 [self.tr("General"), "preferences-general.png",
242 "EditorGeneralPage", "0editorPage", None], 245 "EditorGeneralPage", "0editorPage", None],
243 "editorFilePage": 246 "editorFilePage":
244 [self.tr("Filehandling"), 247 [self.tr("Filehandling"),
341 "HelpFlashCookieManagerPage", "0webBrowserPage", None], 344 "HelpFlashCookieManagerPage", "0webBrowserPage", None],
342 "helpVirusTotalPage": 345 "helpVirusTotalPage":
343 [self.tr("VirusTotal Interface"), "virustotal.png", 346 [self.tr("VirusTotal Interface"), "virustotal.png",
344 "HelpVirusTotalPage", "0webBrowserPage", None], 347 "HelpVirusTotalPage", "0webBrowserPage", None],
345 }) 348 })
346 if qVersionTuple() >= (5, 8, 0): 349 if qVersionTuple() >= (5, 8, 0) and PYQT_VERSION >= 0x50800:
347 self.configItems.update({ 350 self.configItems.update({
348 "webBrowserSpellCheckingPage": 351 "webBrowserSpellCheckingPage":
349 [self.tr("Spell checking"), 352 [self.tr("Spell checking"),
350 "preferences-spellchecking.png", 353 "preferences-spellchecking.png",
351 "WebBrowserSpellCheckingPage", "0webBrowserPage", 354 "WebBrowserSpellCheckingPage", "0webBrowserPage",
465 "helpVirusTotalPage": 468 "helpVirusTotalPage":
466 [self.tr("VirusTotal Interface"), "virustotal.png", 469 [self.tr("VirusTotal Interface"), "virustotal.png",
467 "HelpVirusTotalPage", None, None], 470 "HelpVirusTotalPage", None, None],
468 } 471 }
469 472
470 if qVersionTuple() >= (5, 8, 0): 473 if qVersionTuple() >= (5, 8, 0) and PYQT_VERSION >= 0x50800:
471 self.configItems.update({ 474 self.configItems.update({
472 "webBrowserSpellCheckingPage": 475 "webBrowserSpellCheckingPage":
473 [self.tr("Spell checking"), 476 [self.tr("Spell checking"),
474 "preferences-spellchecking.png", 477 "preferences-spellchecking.png",
475 "WebBrowserSpellCheckingPage", None, None], 478 "WebBrowserSpellCheckingPage", None, None],

eric ide

mercurial