mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
...
This commit is contained in:
parent
a31972e881
commit
bfb17649c6
@ -6,7 +6,7 @@ __copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
from PyQt4.Qt import (QApplication, QFont, QFontInfo, QFontDialog,
|
||||
QAbstractListModel, Qt, QIcon, QKeySequence, QStyleFactory)
|
||||
QAbstractListModel, Qt, QIcon, QKeySequence)
|
||||
|
||||
from calibre.gui2.preferences import ConfigWidgetBase, test_widget, CommaSeparatedList
|
||||
from calibre.gui2.preferences.look_feel_ui import Ui_Form
|
||||
@ -104,11 +104,6 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
||||
r('widget_style', gprefs, restart_required=True, choices=
|
||||
[(_('System default'), 'system'), (_('Calibre style'),
|
||||
'calibre')])
|
||||
styles = set(map(unicode, QStyleFactory.keys()))
|
||||
if 'Calibre' not in styles:
|
||||
# Can happen in linux
|
||||
for x in ('opt', 'label'):
|
||||
getattr(self, x+'_widget_style').setVisible(False)
|
||||
|
||||
r('cover_flow_queue_length', config, restart_required=True)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user