eric6/Preferences/ConfigurationPages/WebBrowserAppearancePage.py

changeset 7945
76daafe10009
parent 7923
91e843545d9a
child 8143
2c730d5fd177
--- a/eric6/Preferences/ConfigurationPages/WebBrowserAppearancePage.py	Sat Jan 02 17:28:57 2021 +0100
+++ b/eric6/Preferences/ConfigurationPages/WebBrowserAppearancePage.py	Sun Jan 03 15:33:39 2021 +0100
@@ -70,14 +70,9 @@
         self.fantasyFontCombo.setCurrentFont(
             QFont(Preferences.getWebBrowser("FantasyFontFamily"),
                   defaultFontSize, QFont.Normal, False))
-        try:
-            # Qt 5.7+
-            self.pictographFontCombo.setCurrentFont(
-                QFont(Preferences.getWebBrowser("PictographFontFamily"),
-                      defaultFontSize, QFont.Normal, False))
-        except KeyError:
-            self.pictographFontLabel.setEnabled(False)
-            self.pictographFontCombo.setEnabled(False)
+        self.pictographFontCombo.setCurrentFont(
+            QFont(Preferences.getWebBrowser("PictographFontFamily"),
+                  defaultFontSize, QFont.Normal, False))
         
         self.initColour("SecureUrlColor",
                         self.secureURLsColourButton,
@@ -101,12 +96,8 @@
         self.warnOnMultipleCloseCheckBox.setChecked(
             Preferences.getWebBrowser("WarnOnMultipleClose"))
         
-        try:
-            # Qt 5.10
-            self.scrollbarsCheckBox.setChecked(
-                Preferences.getWebBrowser("ShowScrollBars"))
-        except KeyError:
-            self.scrollbarsCheckBox.setEnabled(False)
+        self.scrollbarsCheckBox.setChecked(
+            Preferences.getWebBrowser("ShowScrollBars"))
         self.toolbarsCheckBox.setChecked(
             Preferences.getWebBrowser("ShowToolbars"))
     

eric ide

mercurial