aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/models/objectlistmodel/objectlistmodel.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/models/objectlistmodel/objectlistmodel.py')
-rw-r--r--examples/quick/models/objectlistmodel/objectlistmodel.py2
1 files changed, 1 insertions, 1 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)