aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktimeline/qquicktimeline.pro
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2014-02-20 18:03:10 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-21 18:55:31 +0100
commitdb32813a865fe8eda6a4ff87c71b791a26b343c3 (patch)
tree798efea85d2ab01680bb650161ac683679cee440 /tests/auto/quick/qquicktimeline/qquicktimeline.pro
parent325161d1c4f4b9c41e620dc842f2ce503404e245 (diff)
QQuickTimeLine: add missing time checks
The same check is done in QQuickTimeLine::pause(), move() and moveBy(), where the time is passed as an argument. QQuickTimeLine::accel() and accelDistance() calculate the time based on velocity and acceleration or distance. With tiny values this calculation can result to a negative time due to integer overflow. Task-number: QTBUG-35046 Change-Id: I000e73d3f787375946e8f87a5d24153ae919bc8d Reviewed-by: Michael Brasser <michael.brasser@live.com>
Diffstat (limited to 'tests/auto/quick/qquicktimeline/qquicktimeline.pro')
-rw-r--r--tests/auto/quick/qquicktimeline/qquicktimeline.pro9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicktimeline/qquicktimeline.pro b/tests/auto/quick/qquicktimeline/qquicktimeline.pro
new file mode 100644
index 0000000000..3fafc33505
--- /dev/null
+++ b/tests/auto/quick/qquicktimeline/qquicktimeline.pro
@@ -0,0 +1,9 @@
+CONFIG += testcase
+CONFIG += parallel_test
+TARGET = tst_qquicktimeline
+macx:CONFIG -= app_bundle
+
+SOURCES += tst_qquicktimeline.cpp
+QT += core-private gui-private qml quick qml-private quick-private testlib
+
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0