summaryrefslogtreecommitdiff
path: root/src/scripttools/debugging/qscriptdebuggeragent.cpp
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-07-10 18:43:23 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-07-11 10:39:04 +0200
commit5c7733d5c5564a64468c5fdd5e8bd29cc131784c (patch)
tree3b48a02abf60d56bf9c383f1d081bb8549d32950 /src/scripttools/debugging/qscriptdebuggeragent.cpp
parent3880777ff260a660434d36d6f63da6fd1c25d79d (diff)
downloadqtscript-5c7733d5c5564a64468c5fdd5e8bd29cc131784c.tar.gz
Bump Qt version to Qt 6
And also fix usages of removed API. Change-Id: Ifbbe08a202ed19b5969781f66240174ef816269e Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/scripttools/debugging/qscriptdebuggeragent.cpp')
-rw-r--r--src/scripttools/debugging/qscriptdebuggeragent.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/scripttools/debugging/qscriptdebuggeragent.cpp b/src/scripttools/debugging/qscriptdebuggeragent.cpp
index 7e25304..81ffb64 100644
--- a/src/scripttools/debugging/qscriptdebuggeragent.cpp
+++ b/src/scripttools/debugging/qscriptdebuggeragent.cpp
@@ -394,11 +394,13 @@ void QScriptDebuggerAgent::scriptsCheckpoint()
QPair<QList<qint64>, QList<qint64> > QScriptDebuggerAgent::scriptsDelta() const
{
Q_D(const QScriptDebuggerAgent);
- QSet<qint64> prevSet = d->previousCheckpointScripts.keys().toSet();
- QSet<qint64> currSet = d->checkpointScripts.keys().toSet();
+ QList<qint64> prevKeys = d->previousCheckpointScripts.keys();
+ QList<qint64> currKeys = d->checkpointScripts.keys();
+ QSet<qint64> prevSet = QSet<qint64>(prevKeys.begin(), prevKeys.end());
+ QSet<qint64> currSet = QSet<qint64>(currKeys.begin(), currKeys.end());
QSet<qint64> addedScriptIds = currSet - prevSet;
QSet<qint64> removedScriptIds = prevSet - currSet;
- return qMakePair(addedScriptIds.toList(), removedScriptIds.toList());
+ return qMakePair(addedScriptIds.values(), removedScriptIds.values());
}
/*!