diff -r adb8882de5af -r c65b401b775e Preferences/ConfigurationPages/HelpAppearancePage.py --- a/Preferences/ConfigurationPages/HelpAppearancePage.py Sun Jan 17 13:05:52 2016 +0100 +++ b/Preferences/ConfigurationPages/HelpAppearancePage.py Sun Jan 17 13:40:24 2016 +0100 @@ -19,6 +19,11 @@ import Preferences +try: + MonospacedFontsOption = QFontDialog.MonospacedFonts +except AttributeError: + MonospacedFontsOption = QFontDialog.FontDialogOptions(0x10) + class HelpAppearancePage(ConfigurationPageBase, Ui_HelpAppearancePage): """ @@ -124,9 +129,9 @@ """ Private method used to select the fixed-width font. """ - self.fixedFont = \ - self.selectFont(self.fixedFontSample, self.fixedFont, True, - options=QFontDialog.MonospacedFonts) + self.fixedFont = self.selectFont( + self.fixedFontSample, self.fixedFont, True, + options=MonospacedFontsOption) def create(dlg):