aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-06-24 19:43:42 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2020-06-25 09:26:18 +0200
commitf25e4c60f6ff2c200d2bf1c94d0dafa966c5c98f (patch)
treeb4bcb5a7e76affa637112213edf34a2a88a6ce87 /tests/auto/qml/qqmlecmascript
parentd48b87450327e710f7b0a843627624aa67cae116 (diff)
QQmlPropertyBinding: convert to correct type
Change-Id: I5b7b4d670c6308b33a2fd0580790934345bb3504 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript')
-rw-r--r--tests/auto/qml/qqmlecmascript/testtypes.h4
-rw-r--r--tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qml/qqmlecmascript/testtypes.h b/tests/auto/qml/qqmlecmascript/testtypes.h
index 0d92288148..0a0fb98eb5 100644
--- a/tests/auto/qml/qqmlecmascript/testtypes.h
+++ b/tests/auto/qml/qqmlecmascript/testtypes.h
@@ -1727,9 +1727,9 @@ public:
struct ClassWithQProperty : public QObject
{
Q_OBJECT
- Q_PROPERTY(int value)
+ Q_PROPERTY(float value)
public:
- QProperty<int> value;
+ QProperty<float> value;
};
void registerTypes();
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
index ce66a2fe82..2e43642ecd 100644
--- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
+++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
@@ -9285,7 +9285,7 @@ void tst_qqmlecmascript::bindingOnQProperty()
QCOMPARE(test->property("changeHandlerCount").toInt(), 1);
QVERIFY(qobject_cast<ClassWithQProperty*>(test.data()));
- QProperty<int> &qprop = static_cast<ClassWithQProperty*>(test.data())->value;
+ QProperty<float> &qprop = static_cast<ClassWithQProperty*>(test.data())->value;
QVERIFY(qprop.hasBinding());
}