diff options
author | Andreas Buhr <andreas.buhr@qt.io> | 2020-12-14 14:30:29 +0100 |
---|---|---|
committer | Andreas Buhr <andreas.buhr@qt.io> | 2021-04-20 15:56:39 +0200 |
commit | 4dccdd3693d69fe7030e61ba9b7639c6fc76b97e (patch) | |
tree | a5a790856d9c0a9c0ce6eae966c59cfc9087eace /tests/auto | |
parent | 2136406b4cac2e6db4786170cfa9be5372e27da7 (diff) |
Port QPropertyAnimation::propertyName to the new property system
Task-number: QTBUG-85520
Change-Id: Id439783672b17810a51f867bcb69ee6c3eb5a022
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/corelib/animation/qpropertyanimation/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/auto/corelib/animation/qpropertyanimation/tst_qpropertyanimation.cpp | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/corelib/animation/qpropertyanimation/CMakeLists.txt b/tests/auto/corelib/animation/qpropertyanimation/CMakeLists.txt index 5233616115..89a4d0a8e1 100644 --- a/tests/auto/corelib/animation/qpropertyanimation/CMakeLists.txt +++ b/tests/auto/corelib/animation/qpropertyanimation/CMakeLists.txt @@ -11,4 +11,6 @@ qt_internal_add_test(tst_qpropertyanimation Qt::CorePrivate Qt::Gui Qt::Widgets + LIBRARIES + Qt::TestPrivate ) diff --git a/tests/auto/corelib/animation/qpropertyanimation/tst_qpropertyanimation.cpp b/tests/auto/corelib/animation/qpropertyanimation/tst_qpropertyanimation.cpp index 2c7587c2fe..5286daec6a 100644 --- a/tests/auto/corelib/animation/qpropertyanimation/tst_qpropertyanimation.cpp +++ b/tests/auto/corelib/animation/qpropertyanimation/tst_qpropertyanimation.cpp @@ -27,6 +27,7 @@ ****************************************************************************/ #include <QTest> +#include <QtTest/private/qpropertytesthelper_p.h> #include <QSignalSpy> #include <QAnimationGroup> #include <QSequentialAnimationGroup> @@ -193,6 +194,7 @@ private slots: void totalDuration(); void zeroLoopCount(); void recursiveAnimations(); + void bindings(); }; void tst_QPropertyAnimation::initTestCase() @@ -1399,6 +1401,14 @@ void tst_QPropertyAnimation::recursiveAnimations() QCOMPARE(o.y(), qreal(4000)); } +void tst_QPropertyAnimation::bindings() +{ + AnimationObject o; + QPropertyAnimation a(&o, "value"); + + QTestPrivate::testReadWritePropertyBasics(a, QByteArray("value"), QByteArray("realValue"), + "propertyName"); +} QTEST_MAIN(tst_QPropertyAnimation) #include "tst_qpropertyanimation.moc" |