diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp b/tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp index 0d6f0d8d61..dd5d466a49 100644 --- a/tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp +++ b/tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp @@ -2475,6 +2475,8 @@ void tst_qqmlproperty::initFlags() const bool hasSignal = name.endsWith(QStringLiteral("foo")); if (!passObject && !usesId) { QVERIFY(!property.isValid()); + } else if (passObject && usesId) { + QVERIFY(!property.isValid()); } else if (usesId && !(flags & QQmlPropertyPrivate::InitFlag::AllowId)) { QVERIFY(!property.isValid()); } else if (hasSignal && !(flags & QQmlPropertyPrivate::InitFlag::AllowSignal)) { |