aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/cppbaseclass.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-06-10 11:23:20 +0200
committerUlf Hermann <ulf.hermann@qt.io>2022-06-10 14:41:32 +0200
commit8e69558f2f7d44f83779f7e1f60f811dfab0c275 (patch)
treeb6a349959368d6bf6476822bc73fae84596c9810 /tests/auto/qml/qmlcppcodegen/data/cppbaseclass.h
parentdbd108a7997f129004bbed523db75d4aa9d0ab6c (diff)
qmltyperegistrar: Parse value type lists
We need to generate isList properties for those, so that qmlcachegen and qmllint can handle them. Pick-to: 6.4 Fixes: QTBUG-104129 Change-Id: I7e632279a605694c2fd5f583c8a6dcf9968eb634 Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/cppbaseclass.h')
-rw-r--r--tests/auto/qml/qmlcppcodegen/data/cppbaseclass.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/cppbaseclass.h b/tests/auto/qml/qmlcppcodegen/data/cppbaseclass.h
index 1346ea272b..2b52196298 100644
--- a/tests/auto/qml/qmlcppcodegen/data/cppbaseclass.h
+++ b/tests/auto/qml/qmlcppcodegen/data/cppbaseclass.h
@@ -38,8 +38,16 @@ class CppBaseClass : public QObject
Q_OBJECT
Q_PROPERTY(int cppProp MEMBER cppProp BINDABLE cppPropBindable FINAL)
Q_PROPERTY(int cppProp2 MEMBER cppProp2 BINDABLE cppProp2Bindable FINAL)
+ Q_PROPERTY(QList<int> boo MEMBER boo FINAL CONSTANT)
QML_ELEMENT
public:
+ CppBaseClass(QObject *parent = nullptr)
+ : QObject(parent)
+ {
+ boo.append(16);
+ boo.append(17);
+ }
+
QProperty<int> cppProp;
QBindable<int> cppPropBindable() { return QBindable<int>(&cppProp); }
@@ -47,6 +55,9 @@ public:
QBindable<int> cppProp2Bindable() { return QBindable<int>(&cppProp2); }
Q_INVOKABLE void doCall(QObject *foo);
+
+private:
+ QList<int> boo;
};
inline void CppBaseClass::doCall(QObject *foo)