mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Improve comment reflecting modification of function
This commit is contained in:
parent
b8af2a4eb5
commit
a265b71d36
@ -121,8 +121,10 @@ class Preferences(QObject):
|
|||||||
self._settings.setValue(name, normalize_for_serialization(value))
|
self._settings.setValue(name, normalize_for_serialization(value))
|
||||||
|
|
||||||
def saveGeometry(self, name, widget):
|
def saveGeometry(self, name, widget):
|
||||||
# We save geometry under a 5-sized int array: first item is a flag for whether the widget
|
# We save geometry under a 7-sized int array: first item is a flag
|
||||||
# is maximized and the other 4 are (x, y, w, h).
|
# for whether the widget is maximized, second item is a flag for whether
|
||||||
|
# the widget is docked, third item is a Qt::DockWidgetArea enum value,
|
||||||
|
# and the other 4 are (x, y, w, h).
|
||||||
m = 1 if widget.isMaximized() else 0
|
m = 1 if widget.isMaximized() else 0
|
||||||
d = 1 if isinstance(widget, QDockWidget) and not widget.isFloating() else 0
|
d = 1 if isinstance(widget, QDockWidget) and not widget.isFloating() else 0
|
||||||
area = widget.parent.dockWidgetArea(widget) if d else 0
|
area = widget.parent.dockWidgetArea(widget) if d else 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user