From 2a70bc1d0983b9c26c3db513e37410bcabc73d90 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 18 Sep 2020 13:05:37 +0200 Subject: Debugger: Fix build with Qt6 QStringRef gone. ViewOptions changed. MetaType register stream operators automatically. Task-number: QTCREATORBUG-24098 Change-Id: Ibf98561af951aa5fc4ec483d18dafeaad02e07c3 Reviewed-by: hjk --- src/plugins/debugger/breakpoint.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/plugins/debugger/breakpoint.cpp') 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; -- cgit v1.2.1