summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwindowsysteminterface_qpa.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2012-03-09 14:26:43 +0200
committerQt by Nokia <qt-info@nokia.com>2012-03-12 13:14:05 +0100
commit6a0f84e0a86b9c27a861e19b4eb7bb4701a1e3c7 (patch)
treec7f94a83dc8ad4cc2ef5e0798bf83c1e7308a7bd /src/gui/kernel/qwindowsysteminterface_qpa.cpp
parent12c89098832de7475ad6ad11fe92f50b13f713f4 (diff)
Migrate QWindowSystemInterface to use QElapsedTimer
Change-Id: I7dfb0590dce79678d49f5d6ef8f60758719bcf72 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui/kernel/qwindowsysteminterface_qpa.cpp')
-rw-r--r--src/gui/kernel/qwindowsysteminterface_qpa.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gui/kernel/qwindowsysteminterface_qpa.cpp b/src/gui/kernel/qwindowsysteminterface_qpa.cpp
index 6f0abbdd0c..be9ac8e545 100644
--- a/src/gui/kernel/qwindowsysteminterface_qpa.cpp
+++ b/src/gui/kernel/qwindowsysteminterface_qpa.cpp
@@ -49,7 +49,7 @@
QT_BEGIN_NAMESPACE
-QTime QWindowSystemInterfacePrivate::eventTime;
+QElapsedTimer QWindowSystemInterfacePrivate::eventTime;
//------------------------------------------------------------
//
@@ -266,10 +266,6 @@ void QWindowSystemInterfacePrivate::queueWindowSystemEvent(QWindowSystemInterfac
windowSystemEventQueue.append(ev);
queueMutex.unlock();
- // Make sure the event timer is started.
- if (!QWindowSystemInterfacePrivate::eventTime.isValid())
- QWindowSystemInterfacePrivate::eventTime.start();
-
QAbstractEventDispatcher *dispatcher = QGuiApplicationPrivate::qt_qpa_core_dispatcher();
if (dispatcher)
dispatcher->wakeUp();