diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-01-29 13:22:35 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-01-29 15:27:15 +0100 |
commit | da9fee11bbf7842d72bbf7c0cd2072b020c71626 (patch) | |
tree | b95ede099d5d2a48a6d8c7eaad14267e6217ef7e /tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp | |
parent | 4ad7a4d3dabea0c46872be2d6262a9c00e4e5079 (diff) |
Required properties: Allow required default properties
This was already possible from C++, this change adds the required
changes to the grammar to allow declaring required default properties
in QML.
Change-Id: I76cb4d70e573bf161676da8295ab257fe95ed4ae
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp')
-rw-r--r-- | tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp index 64696e7f3f..5027c0825f 100644 --- a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp +++ b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp @@ -1675,10 +1675,6 @@ void tst_qqmllanguage::requiredProperty() QQmlComponent component(&engine, testFileUrl("requiredProperties.2.qml")); QVERIFY(!component.errors().empty()); } - { - QQmlComponent component(&engine, testFileUrl("requiredProperties.3.qml")); - QVERIFY(!component.errors().empty()); - } } class MyClassWithRequiredProperty : public QObject |