diff options
author | Eike Ziller <eike.ziller@qt.io> | 2020-09-18 13:05:37 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2020-09-18 14:41:20 +0000 |
commit | 2a70bc1d0983b9c26c3db513e37410bcabc73d90 (patch) | |
tree | db428e7b7be3a2e7b50afd7750b9ae72dc5c0e1b /src/plugins/debugger/breakpoint.cpp | |
parent | 3a602e8338f8fe0cc38092aa65cdfcc4d5c78758 (diff) | |
download | qt-creator-2a70bc1d0983b9c26c3db513e37410bcabc73d90.tar.gz |
Debugger: Fix build with Qt6
QStringRef gone.
ViewOptions changed.
MetaType register stream operators automatically.
Task-number: QTCREATORBUG-24098
Change-Id: Ibf98561af951aa5fc4ec483d18dafeaad02e07c3
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger/breakpoint.cpp')
-rw-r--r-- | src/plugins/debugger/breakpoint.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/debugger/breakpoint.cpp b/src/plugins/debugger/breakpoint.cpp index 65462c92dc..998746302e 100644 --- a/src/plugins/debugger/breakpoint.cpp +++ b/src/plugins/debugger/breakpoint.cpp @@ -137,7 +137,7 @@ void BreakpointParameters::updateLocation(const QString &location) { if (!location.isEmpty()) { int pos = location.indexOf(':'); - lineNumber = location.midRef(pos + 1).toInt(); + lineNumber = location.mid(pos + 1).toInt(); QString file = location.left(pos); if (file.startsWith('"') && file.endsWith('"')) file = file.mid(1, file.size() - 2); @@ -156,9 +156,9 @@ bool BreakpointParameters::isQmlFileAndLineBreakpoint() const if (qmlExtensionString.isEmpty()) qmlExtensionString = ".qml;.js"; - const auto qmlFileExtensions = qmlExtensionString.splitRef(';', Qt::SkipEmptyParts); + const auto qmlFileExtensions = qmlExtensionString.split(';', Qt::SkipEmptyParts); const QString file = fileName.toString(); - for (const QStringRef &extension : qmlFileExtensions) { + for (const QString &extension : qmlFileExtensions) { if (file.endsWith(extension, Qt::CaseInsensitive)) return true; } @@ -347,7 +347,7 @@ void BreakpointParameters::updateFromGdbOutput(const GdbMi &bkpt) QString what = bkpt["what"].data(); if (what.startsWith("*0x")) { type = WatchpointAtAddress; - address = what.midRef(1).toULongLong(nullptr, 0); + address = what.mid(1).toULongLong(nullptr, 0); } else { type = WatchpointAtExpression; expression = what; |