Preferences/ConfigurationDialog.py

changeset 5532
3a7c5deab9b7
parent 5389
9b1c800daff3
child 5651
982465f8389c
diff -r 93f95c4b3153 -r 3a7c5deab9b7 Preferences/ConfigurationDialog.py
--- a/Preferences/ConfigurationDialog.py	Sat Feb 18 19:59:14 2017 +0100
+++ b/Preferences/ConfigurationDialog.py	Sun Feb 19 19:23:21 2017 +0100
@@ -12,7 +12,8 @@
 import os
 import types
 
-from PyQt5.QtCore import QMetaObject, pyqtSignal, Qt, QRect, pyqtSlot
+from PyQt5.QtCore import QMetaObject, pyqtSignal, Qt, QRect, pyqtSlot, \
+    qVersion
 from PyQt5.QtGui import QPixmap
 from PyQt5.QtWidgets import QSizePolicy, QSpacerItem, QWidget, QTreeWidget, \
     QStackedWidget, QDialog, QSplitter, QScrollArea, QApplication, \
@@ -339,6 +340,14 @@
                     [self.tr("VirusTotal Interface"), "virustotal.png",
                      "HelpVirusTotalPage", "0webBrowserPage", None],
                 })
+                if qVersion() >= "5.8.0":
+                    self.configItems.update({
+                        "webBrowserSpellCheckingPage":
+                        [self.tr("Spell checking"),
+                         "preferences-spellchecking.png",
+                         "WebBrowserSpellCheckingPage", "0webBrowserPage",
+                         None],
+                    })
             else:
                 try:
                     from PyQt5 import QtWebKit      # __IGNORE_WARNING__
@@ -454,6 +463,14 @@
                 [self.tr("VirusTotal Interface"), "virustotal.png",
                  "HelpVirusTotalPage", None, None],
             }
+            
+            if qVersion() >= "5.8.0":
+                self.configItems.update({
+                    "webBrowserSpellCheckingPage":
+                    [self.tr("Spell checking"),
+                     "preferences-spellchecking.png",
+                     "WebBrowserSpellCheckingPage", None, None],
+                })
         
         elif displayMode == ConfigurationWidget.TrayStarterMode:
             self.configItems = {

eric ide

mercurial