Preferences/ConfigurationPages/ConfigurationPageBase.py

changeset 4673
6fa2418f010c
parent 4631
5c1a96925da4
child 4676
c65b401b775e
diff -r 67fa9b25183f -r 6fa2418f010c Preferences/ConfigurationPages/ConfigurationPageBase.py
--- a/Preferences/ConfigurationPages/ConfigurationPageBase.py	Sun Jan 17 12:18:55 2016 +0100
+++ b/Preferences/ConfigurationPages/ConfigurationPageBase.py	Sun Jan 17 12:57:23 2016 +0100
@@ -104,7 +104,8 @@
             else:
                 prefMethod(key, self.__coloursDict[key][0])
         
-    def selectFont(self, fontSample, fontVar, showFontInfo=False):
+    def selectFont(self, fontSample, fontVar, showFontInfo=False,
+                   options=QFontDialog.FontDialogOptions(0)):
         """
         Public method used by the font selection buttons.
         
@@ -112,9 +113,11 @@
         @param fontVar reference to the variable containing the font (QFont)
         @param showFontInfo flag indicating to show some font info
             as the sample (boolean)
+        @param options options for the font dialog
+            (QFontDialog.FontDialogOptions)
         @return selected font (QFont)
         """
-        font, ok = QFontDialog.getFont(fontVar, self)
+        font, ok = QFontDialog.getFont(fontVar, self, options=options)
         if ok:
             fontSample.setFont(font)
             if showFontInfo:

eric ide

mercurial