diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2022-06-13 09:25:40 +0200 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2022-06-15 09:43:01 +0200 |
| commit | e18919d3f24f359a720a2a4daca322cfce3c68fd (patch) | |
| tree | d36911c95207ae05904a32bc384c65e88c51f036 /tests/auto/qml/qmlcppcodegen/data/cppbaseclass.h | |
| parent | fb3a81623a3d39289d508f504bb0308be443ce50 (diff) | |
QmlCompiler: Check builtin type aliases after list resolution
This way we can determine that QList<qreal> is the same as
QList<double>.
Pick-to: 6.4
Fixes: QTBUG-104129
Change-Id: I96df19da1a613558b950aa6cee46159024c19cc9
Reviewed-by: Evgeniy Dushistov <dushistov@mail.ru>
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/cppbaseclass.h')
| -rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/cppbaseclass.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/cppbaseclass.h b/tests/auto/qml/qmlcppcodegen/data/cppbaseclass.h index 1a938fb82a..416a61defc 100644 --- a/tests/auto/qml/qmlcppcodegen/data/cppbaseclass.h +++ b/tests/auto/qml/qmlcppcodegen/data/cppbaseclass.h @@ -14,6 +14,7 @@ class CppBaseClass : public QObject 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) + Q_PROPERTY(QList<qreal> hoo MEMBER hoo FINAL CONSTANT) QML_ELEMENT public: CppBaseClass(QObject *parent = nullptr) @@ -21,6 +22,9 @@ public: { boo.append(16); boo.append(17); + + hoo.append(0.25); + hoo.append(13.5); } QProperty<int> cppProp; @@ -33,6 +37,7 @@ public: private: QList<int> boo; + QList<qreal> hoo; }; inline void CppBaseClass::doCall(QObject *foo) |
