aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltyperegistrar/tst_qmltyperegistrar.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-05-12 14:00:10 +0200
committerUlf Hermann <ulf.hermann@qt.io>2021-05-12 23:45:01 +0200
commite6bc19d518b92d47639de871e255bfe73118cd17 (patch)
tree1b09adc9d2c76677bdb40885469fc52e0a4510ba /tests/auto/qml/qmltyperegistrar/tst_qmltyperegistrar.h
parentc0ab31470275d99f483e7342da3235b9a28072c6 (diff)
Pass "final" attribute of properties through qmltypes
We want to know about that in QQmlJSScope. Task-number: QTBUG-93662 Change-Id: Ie4b15fa06cb921d48074ae39d1057ead439ebc45 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmltyperegistrar/tst_qmltyperegistrar.h')
-rw-r--r--tests/auto/qml/qmltyperegistrar/tst_qmltyperegistrar.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/auto/qml/qmltyperegistrar/tst_qmltyperegistrar.h b/tests/auto/qml/qmltyperegistrar/tst_qmltyperegistrar.h
index c0657eaf56..94b4d3b3a2 100644
--- a/tests/auto/qml/qmltyperegistrar/tst_qmltyperegistrar.h
+++ b/tests/auto/qml/qmltyperegistrar/tst_qmltyperegistrar.h
@@ -46,7 +46,6 @@ Q_DECLARE_INTERFACE(Interface2, "io.qt.bugreports.Interface2");
Q_DECLARE_INTERFACE(Interface3, "io.qt.bugreports.Interface3");
QT_END_NAMESPACE
-
class ImplementsInterfaces : public QObject, public Interface
{
Q_OBJECT
@@ -248,6 +247,15 @@ private:
int m_foo;
};
+class FinalProperty : public QObject
+{
+ Q_OBJECT
+ QML_ELEMENT
+ Q_PROPERTY(int fff MEMBER fff FINAL)
+public:
+ int fff = 0;
+};
+
class MultiExtension : public MultiExtensionParent
{
Q_OBJECT
@@ -306,6 +314,7 @@ private slots:
void localDefault();
void requiredProperty();
void hiddenAccessor();
+ void finalProperty();
private:
QByteArray qmltypesData;