summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/kernel/qguitimer
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2023-08-25 18:05:36 +0200
committerIvan Solovev <ivan.solovev@qt.io>2023-09-03 18:20:51 +0200
commit7d70edd31cb4c55471ad96e3a1d7114e2c081cf6 (patch)
treefd3a126a2866e7bb1a023c6595c8dcc785ab32b6 /tests/auto/gui/kernel/qguitimer
parentcdb50edc9862679e8795a8404ce49fb26534f4bc (diff)
QTimer: extend property tests and fix binding loop
The bindable property tests were not using the QTestPrivate helpers, so add a new test which uses them. The new tests revealed a binding loop for the interval property. Fix it in a usual way by explicitly removing the binding and using {set}ValueBypassingBindings() in the setter. Task-number: QTBUG-116346 Pick-to: 6.6 6.5 Change-Id: If94f57938da449a68e3527aead5ebd55ba410adb Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'tests/auto/gui/kernel/qguitimer')
-rw-r--r--tests/auto/gui/kernel/qguitimer/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/gui/kernel/qguitimer/CMakeLists.txt b/tests/auto/gui/kernel/qguitimer/CMakeLists.txt
index c3bd8a0a59..1f27b5b919 100644
--- a/tests/auto/gui/kernel/qguitimer/CMakeLists.txt
+++ b/tests/auto/gui/kernel/qguitimer/CMakeLists.txt
@@ -17,6 +17,7 @@ qt_internal_add_test(tst_qguitimer
LIBRARIES
Qt::CorePrivate
Qt::Gui
+ Qt::TestPrivate
)
if(QT_FEATURE_glib AND UNIX)
@@ -29,5 +30,6 @@ if(QT_FEATURE_glib AND UNIX)
LIBRARIES
Qt::CorePrivate
Qt::Gui
+ Qt::TestPrivate
)
endif()