mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
More stupid PyQt enums
This commit is contained in:
parent
d391c02582
commit
6c79fb9b40
@ -100,7 +100,7 @@ class BasicSettings(QWidget): # {{{
|
|||||||
widget.setDropIndicatorShown(True)
|
widget.setDropIndicatorShown(True)
|
||||||
widget.indexesMoved.connect(self.emit_changed)
|
widget.indexesMoved.connect(self.emit_changed)
|
||||||
widget.setDefaultDropAction(Qt.DropAction.MoveAction)
|
widget.setDefaultDropAction(Qt.DropAction.MoveAction)
|
||||||
widget.setMovement(widget.Snap)
|
widget.setMovement(QListView.Movement.Snap)
|
||||||
widget.setSpacing(5)
|
widget.setSpacing(5)
|
||||||
widget.defaults = prefs.defaults[name]
|
widget.defaults = prefs.defaults[name]
|
||||||
|
|
||||||
@ -734,7 +734,7 @@ class Preferences(QDialog):
|
|||||||
cl.clearPropertyFlags()
|
cl.clearPropertyFlags()
|
||||||
cl.setViewMode(QListView.ViewMode.IconMode)
|
cl.setViewMode(QListView.ViewMode.IconMode)
|
||||||
cl.setFlow(QListView.Flow.TopToBottom)
|
cl.setFlow(QListView.Flow.TopToBottom)
|
||||||
cl.setMovement(cl.Static)
|
cl.setMovement(QListView.Movement.Static)
|
||||||
cl.setWrapping(False)
|
cl.setWrapping(False)
|
||||||
cl.setSpacing(15)
|
cl.setSpacing(15)
|
||||||
if get_lang()[:2] not in ('zh', 'ja'):
|
if get_lang()[:2] not in ('zh', 'ja'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user