diff options
-rw-r--r-- | src/scripttools/debugging/qscriptdebuggeragent.cpp | 2 | ||||
-rw-r--r-- | src/scripttools/debugging/qscriptdebuggeragent_p_p.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/scripttools/debugging/qscriptdebuggeragent.cpp b/src/scripttools/debugging/qscriptdebuggeragent.cpp index 5642dfe..7e25304 100644 --- a/src/scripttools/debugging/qscriptdebuggeragent.cpp +++ b/src/scripttools/debugging/qscriptdebuggeragent.cpp @@ -559,7 +559,7 @@ void QScriptDebuggerAgent::positionChange(qint64 scriptId, if (engine()->processEventsInterval() == -1) { // see if it's time to call processEvents() if ((++d->statementCounter % 25000) == 0) { - if (!d->processEventsTimer.isNull()) { + if (d->processEventsTimer.isValid()) { if (d->processEventsTimer.elapsed() > 30) { QCoreApplication::processEvents(); d->processEventsTimer.restart(); diff --git a/src/scripttools/debugging/qscriptdebuggeragent_p_p.h b/src/scripttools/debugging/qscriptdebuggeragent_p_p.h index 2e8be3a..1474032 100644 --- a/src/scripttools/debugging/qscriptdebuggeragent_p_p.h +++ b/src/scripttools/debugging/qscriptdebuggeragent_p_p.h @@ -52,7 +52,7 @@ // #include <QtScript/qscriptvalue.h> -#include <QtCore/qdatetime.h> +#include <QtCore/qelapsedtimer.h> #include <QtCore/qhash.h> #include <QtCore/qmap.h> #include <QtCore/qlist.h> @@ -113,7 +113,7 @@ public: QList<qint64> checkpointContextIdStack; qint64 nextContextId; - QTime processEventsTimer; + QElapsedTimer processEventsTimer; int statementCounter; QScriptDebuggerBackendPrivate *backend; |