More stupid PyQt enums

This commit is contained in:
Kovid Goyal 2020-12-20 10:37:42 +05:30
parent d391c02582
commit 6c79fb9b40
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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'):