aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-11-25 20:32:23 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-11-26 17:26:11 +0000
commit6fe4cb2e478712baadb8363b14553485c590c252 (patch)
treeeb02fb1b30006abba5d7148e51871c664f2af360 /tests
parent6980589344b67f6a68e5fa86d3ea89d9f659d842 (diff)
testbench: add support for slow motion animations
Useful for debugging animations. Usage: ./testbench -slow Change-Id: Ic509c8da428dd08eddc9f445f942e3362bad9004 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/testbench/main.cpp3
-rw-r--r--tests/manual/testbench/testbench.pro2
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/manual/testbench/main.cpp b/tests/manual/testbench/main.cpp
index 56af4941..b6eec8d8 100644
--- a/tests/manual/testbench/main.cpp
+++ b/tests/manual/testbench/main.cpp
@@ -40,6 +40,7 @@
#include <QGuiApplication>
#include <QQmlApplicationEngine>
+#include <QtCore/private/qabstractanimation_p.h>
int main(int argc, char *argv[])
{
@@ -47,6 +48,8 @@ int main(int argc, char *argv[])
QGuiApplication app(argc, argv);
+ QUnifiedTimer::instance()->setSlowModeEnabled(app.arguments().contains("-slow"));
+
// These must be set before running.
// TODO: move style selection into app UI and use settings to save choices.
// qsetenv("QT_QUICK_FILE_SELECTORS", "material");
diff --git a/tests/manual/testbench/testbench.pro b/tests/manual/testbench/testbench.pro
index 92eef0a0..082ca66f 100644
--- a/tests/manual/testbench/testbench.pro
+++ b/tests/manual/testbench/testbench.pro
@@ -1,6 +1,6 @@
TEMPLATE = app
-QT += qml quick
+QT += qml quick core-private
CONFIG += c++11
SOURCES += main.cpp