eric7/Preferences/ConfigurationPages/WebBrowserAppearancePage.py

branch
eric7
changeset 8318
962bce857696
parent 8312
800c432b34c8
child 8319
ea11a3948f40
--- a/eric7/Preferences/ConfigurationPages/WebBrowserAppearancePage.py	Sun May 16 11:43:59 2021 +0200
+++ b/eric7/Preferences/ConfigurationPages/WebBrowserAppearancePage.py	Sun May 16 20:07:24 2021 +0200
@@ -7,8 +7,8 @@
 Module implementing the Web Browser Appearance configuration page.
 """
 
-from PyQt5.QtGui import QFont
-from PyQt5.QtWidgets import QFontDialog
+from PyQt6.QtGui import QFont
+from PyQt6.QtWidgets import QFontDialog
 
 from E5Gui.E5PathPicker import E5PathPickerModes
 
@@ -53,25 +53,25 @@
             Preferences.getWebBrowser("MinimumLogicalFontSize"))
         
         self.standardFontCombo.setCurrentFont(
-            QFont(Preferences.getWebBrowser("StandardFontFamily"),
+            QFont([Preferences.getWebBrowser("StandardFontFamily")],
                   defaultFontSize, QFont.Weight.Normal, False))
         self.fixedFontCombo.setCurrentFont(
-            QFont(Preferences.getWebBrowser("FixedFontFamily"),
+            QFont([Preferences.getWebBrowser("FixedFontFamily")],
                   fixedFontSize, QFont.Weight.Normal, False))
         self.serifFontCombo.setCurrentFont(
-            QFont(Preferences.getWebBrowser("SerifFontFamily"),
+            QFont([Preferences.getWebBrowser("SerifFontFamily")],
                   defaultFontSize, QFont.Weight.Normal, False))
         self.sansSerifFontCombo.setCurrentFont(
-            QFont(Preferences.getWebBrowser("SansSerifFontFamily"),
+            QFont([Preferences.getWebBrowser("SansSerifFontFamily")],
                   defaultFontSize, QFont.Weight.Normal, False))
         self.cursiveFontCombo.setCurrentFont(
-            QFont(Preferences.getWebBrowser("CursiveFontFamily"),
+            QFont([Preferences.getWebBrowser("CursiveFontFamily")],
                   defaultFontSize, QFont.Weight.Normal, True))
         self.fantasyFontCombo.setCurrentFont(
-            QFont(Preferences.getWebBrowser("FantasyFontFamily"),
+            QFont([Preferences.getWebBrowser("FantasyFontFamily")],
                   defaultFontSize, QFont.Weight.Normal, False))
         self.pictographFontCombo.setCurrentFont(
-            QFont(Preferences.getWebBrowser("PictographFontFamily"),
+            QFont([Preferences.getWebBrowser("PictographFontFamily")],
                   defaultFontSize, QFont.Weight.Normal, False))
         
         self.initColour("SecureUrlColor",

eric ide

mercurial