From f7242cdce946693aafc030c673b17fda46dc3d01 Mon Sep 17 00:00:00 2001
From: hjk
Date: Tue, 23 Jun 2020 18:54:52 +0200
Subject: [PATCH] Debugger: Some compilation with Qt 6
Change-Id: Ifffe68a3c902bbad026919171ac906ae05ec86f2
Reviewed-by: David Schulz
---
src/plugins/debugger/cdb/cdbengine.cpp | 4 ++--
src/plugins/debugger/debuggerdialogs.cpp | 10 +++++-----
src/plugins/debugger/peripheralregisterhandler.cpp | 2 ++
src/plugins/debugger/qml/qmlengine.cpp | 2 +-
4 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp
index 834a0cb94c1..472f8597d36 100644
--- a/src/plugins/debugger/cdb/cdbengine.cpp
+++ b/src/plugins/debugger/cdb/cdbengine.cpp
@@ -365,7 +365,7 @@ void CdbEngine::setupEngine()
"you will need to build a separate CDB extension with the "
"same bitness as the CDB you want to use.").
arg(QDir::toNativeSeparators(extensionFi.absoluteFilePath()),
- Core::Constants::IDE_DISPLAY_NAME));
+ QString(Core::Constants::IDE_DISPLAY_NAME)));
return;
}
@@ -427,7 +427,7 @@ void CdbEngine::setupEngine()
const QString msg = QString("Launching %1\nusing %2 of %3.")
.arg(debugger.toUserOutput(),
QDir::toNativeSeparators(extensionFi.absoluteFilePath()),
- extensionFi.lastModified().toString(Qt::SystemLocaleShortDate));
+ QLocale::system().toString(extensionFi.lastModified(), QLocale::ShortFormat));
showMessage(msg, LogMisc);
m_outputBuffer.clear();
diff --git a/src/plugins/debugger/debuggerdialogs.cpp b/src/plugins/debugger/debuggerdialogs.cpp
index afaaf6af56b..203dea6071f 100644
--- a/src/plugins/debugger/debuggerdialogs.cpp
+++ b/src/plugins/debugger/debuggerdialogs.cpp
@@ -580,7 +580,7 @@ void AttachToQmlPortDialog::setKitId(Id id)
// --------- StartRemoteCdbDialog
static QString cdbRemoteHelp()
{
- const char *cdbConnectionSyntax =
+ const char cdbConnectionSyntax[] =
"Server:Port
"
"tcp:server=Server,port=Port[,password=Password][,ipversion=6]\n"
"tcp:clicon=Server,port=Port[,password=Password][,ipversion=6]\n"
@@ -599,10 +599,10 @@ static QString cdbRemoteHelp()
"Launch the remote CDB as %5 <executable>
"
"to use TCP/IP as communication protocol.
Enter the connection parameters as:
"
"%6