aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlcomponent/lifecyclewatcher.h
diff options
context:
space:
mode:
authorTarja Sundqvist <tarja.sundqvist@qt.io>2025-12-15 16:14:22 +0200
committerTarja Sundqvist <tarja.sundqvist@qt.io>2025-12-15 16:14:22 +0200
commitb58ec3b086518da5aa573f99426235854c23e35f (patch)
tree861a9935d8f1cdba2fdca546836a351736dbddbf /tests/auto/qml/qqmlcomponent/lifecyclewatcher.h
parent4826f86e274f1b29bd769e6790824f9e62a40f62 (diff)
parent22032227d16c39211e2ebceef97d21f4d89c7c87 (diff)
Merge tag 'v6.5.8-lts-lgpl' into 6.56.5
Qt 6.5.8-lts-lgpl release
Diffstat (limited to 'tests/auto/qml/qqmlcomponent/lifecyclewatcher.h')
-rw-r--r--tests/auto/qml/qqmlcomponent/lifecyclewatcher.h25
1 files changed, 22 insertions, 3 deletions
diff --git a/tests/auto/qml/qqmlcomponent/lifecyclewatcher.h b/tests/auto/qml/qqmlcomponent/lifecyclewatcher.h
index 738fd86942..3d3bdfd562 100644
--- a/tests/auto/qml/qqmlcomponent/lifecyclewatcher.h
+++ b/tests/auto/qml/qqmlcomponent/lifecyclewatcher.h
@@ -15,10 +15,29 @@ class LifeCycleWatcher : public QObject, public QQmlParserStatus, public QQmlFin
QML_ELEMENT
Q_INTERFACES(QQmlParserStatus)
Q_INTERFACES(QQmlFinalizerHook)
+ Q_PROPERTY(QString text MEMBER text)
public:
- void classBegin() override {states.push_back(1); }
- void componentComplete() override {states.push_back(2);};
- void componentFinalized() override { states.push_back(3); }
+ void classBegin() override
+ {
+ states.push_back(1);
+ observedTexts.push_back(text);
+ }
+
+ void componentComplete() override
+ {
+ states.push_back(2);
+ observedTexts.push_back(text);
+ }
+
+ void componentFinalized() override
+ {
+ states.push_back(3);
+ observedTexts.push_back(text);
+ }
+
+ QString text;
QList<int> states;
+ QStringList observedTexts;
};
+
#endif