diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2010-03-26 09:57:17 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2010-04-07 10:35:57 (GMT) |
commit | d3ae1a9386a85475ba685cfc9a3009f119cad895 (patch) | |
tree | 9f8f08d08fe59433e82ea1df3fd61e7278796152 /tests/auto/macnativeevents/nativeeventlist.cpp | |
parent | 61e26e2fcc086112e5e8897a6d1c20c4b9df5f49 (diff) | |
download | Qt-d3ae1a9386a85475ba685cfc9a3009f119cad895.zip Qt-d3ae1a9386a85475ba685cfc9a3009f119cad895.tar.gz Qt-d3ae1a9386a85475ba685cfc9a3009f119cad895.tar.bz2 |
Autotest: added more tests to macnativeevents (2)
Diffstat (limited to 'tests/auto/macnativeevents/nativeeventlist.cpp')
-rw-r--r-- | tests/auto/macnativeevents/nativeeventlist.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/macnativeevents/nativeeventlist.cpp b/tests/auto/macnativeevents/nativeeventlist.cpp index 614e9d0..d5d7b95 100644 --- a/tests/auto/macnativeevents/nativeeventlist.cpp +++ b/tests/auto/macnativeevents/nativeeventlist.cpp @@ -47,6 +47,9 @@ NativeEventList::NativeEventList(int defaultWaitMs) , wait(false) , defaultWaitMs(defaultWaitMs) { + QString multiplier = qgetenv("NATIVEDEBUG"); + if (!multiplier.isEmpty()) + setTimeMultiplier(multiplier.toFloat()); } NativeEventList::~NativeEventList() @@ -105,3 +108,8 @@ void NativeEventList::stop() QAbstractEventDispatcher::instance()->interrupt(); } +void NativeEventList::setTimeMultiplier(float multiplier) +{ + playbackMultiplier = multiplier; +} + |