diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-11-28 12:10:26 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-11-28 15:58:37 +0100 |
commit | ddc01a90175e90a7854be0d90bed25a902613e59 (patch) | |
tree | 26eecdea75c0f304a46880eec30720822439a34d /examples/quick | |
parent | ca3a64c024ae817ca38b1df87123f341637c8bd4 (diff) |
Examples: Fix some flake warnings
Mostly spacing related.
Pick-to: 6.6
Change-Id: If0d5b25e1c60b7b216f970d1e57613f00bd04a37
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Diffstat (limited to 'examples/quick')
-rw-r--r-- | examples/quick/models/objectlistmodel/objectlistmodel.py | 2 | ||||
-rw-r--r-- | examples/quick/models/stringlistmodel/stringlistmodel.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/models/objectlistmodel/objectlistmodel.py b/examples/quick/models/objectlistmodel/objectlistmodel.py index 0843ae480..41110c1af 100644 --- a/examples/quick/models/objectlistmodel/objectlistmodel.py +++ b/examples/quick/models/objectlistmodel/objectlistmodel.py @@ -9,6 +9,7 @@ from PySide6.QtQuick import QQuickView # This example illustrates exposing a list of QObjects as a model in QML + class DataObject(QObject): nameChanged = Signal() @@ -35,7 +36,6 @@ class DataObject(QObject): self._color = color colorChanged.emit() - name = Property(str, name, setName, notify=nameChanged) color = Property(str, color, setColor, notify=colorChanged) diff --git a/examples/quick/models/stringlistmodel/stringlistmodel.py b/examples/quick/models/stringlistmodel/stringlistmodel.py index a7a1807bb..3982b1ffc 100644 --- a/examples/quick/models/stringlistmodel/stringlistmodel.py +++ b/examples/quick/models/stringlistmodel/stringlistmodel.py @@ -15,7 +15,7 @@ if __name__ == '__main__': dataList = ["Item 1", "Item 2", "Item 3", "Item 4"] view = QQuickView() - view.setInitialProperties({"model": dataList }) + view.setInitialProperties({"model": dataList}) qml_file = Path(__file__).parent / "view.qml" view.setSource(QUrl.fromLocalFile(qml_file)) |