diff options
author | Adrian Herrmann <[email protected]> | 2023-12-05 13:10:16 +0100 |
---|---|---|
committer | Adrian Herrmann <[email protected]> | 2023-12-06 15:04:33 +0100 |
commit | dcf38e34858ee74857a1cc431b12a3b88865cade (patch) | |
tree | b49d3bab810ad590ec15dc1cbf5a9566c1472b23 /examples/quick/models | |
parent | 55015346f4107ca3383e7ab54be38e72ec8b07d1 (diff) |
Examples: Fix a number of flake8 errors (part 3)
Fix unused variable errors and other miscellaneous errors not included
in parts 1 and 2.
Pick-to: 6.6
Change-Id: Ifb4336cd4ecdd62928042e1011d4430a461efc7c
Reviewed-by: Shyamnath Premnadh <[email protected]>
Reviewed-by: Friedemann Kleint <[email protected]>
Diffstat (limited to 'examples/quick/models')
-rw-r--r-- | examples/quick/models/objectlistmodel/objectlistmodel.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/models/objectlistmodel/objectlistmodel.py b/examples/quick/models/objectlistmodel/objectlistmodel.py index 41110c1af..968761e5c 100644 --- a/examples/quick/models/objectlistmodel/objectlistmodel.py +++ b/examples/quick/models/objectlistmodel/objectlistmodel.py @@ -26,7 +26,7 @@ class DataObject(QObject): def setName(self, name): if name != self._name: self._name = name - nameChanged.emit() + self.nameChanged.emit() def color(self): return self._color @@ -34,7 +34,7 @@ class DataObject(QObject): def setColor(self, color): if color != self._color: self._color = color - colorChanged.emit() + self.colorChanged.emit() name = Property(str, name, setName, notify=nameChanged) color = Property(str, color, setColor, notify=colorChanged) |