summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRitt Konstantin <ritt.ks@gmail.com>2010-06-08 10:07:04 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2010-06-08 10:07:04 (GMT)
commitd0e209747a31c3e06f82e831fc3695986e12e9cd (patch)
tree8e0938ec7a568511c7571b662ffa4a08be43338a
parent6d9289d1117287acbec162d2e8a26442308c484f (diff)
downloadQt-d0e209747a31c3e06f82e831fc3695986e12e9cd.zip
Qt-d0e209747a31c3e06f82e831fc3695986e12e9cd.tar.gz
Qt-d0e209747a31c3e06f82e831fc3695986e12e9cd.tar.bz2
prefer QElapsedTimer over QTime
Merge-request: 678 Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
-rw-r--r--src/corelib/kernel/qeventloop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/kernel/qeventloop.cpp b/src/corelib/kernel/qeventloop.cpp
index 628afa7..c19f718 100644
--- a/src/corelib/kernel/qeventloop.cpp
+++ b/src/corelib/kernel/qeventloop.cpp
@@ -43,7 +43,7 @@
#include "qabstracteventdispatcher.h"
#include "qcoreapplication.h"
-#include "qdatetime.h"
+#include "qelapsedtimer.h"
#include "qobject_p.h"
#include <private/qthread_p.h>
@@ -247,7 +247,7 @@ void QEventLoop::processEvents(ProcessEventsFlags flags, int maxTime)
if (!d->threadData->eventDispatcher)
return;
- QTime start;
+ QElapsedTimer start;
start.start();
if (flags & DeferredDeletion)
QCoreApplication::sendPostedEvents(0, QEvent::DeferredDelete);