Utils: Use Key more widely in QtcSettings

And adapt user code.

Change-Id: I6efe4ebe6823de4cc862f304a57e041b02c40eac
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
hjk
2023-08-30 07:39:54 +02:00
parent 922da1fbb3
commit c7710acadd
35 changed files with 141 additions and 147 deletions

View File

@@ -1477,12 +1477,12 @@ void DebuggerPluginPrivate::parseCommandLineArguments()
QTimer::singleShot(0, this, &DebuggerPluginPrivate::runScheduled);
}
static void setConfigValue(const QString &name, const QVariant &value)
static void setConfigValue(const Key &name, const QVariant &value)
{
ICore::settings()->setValue("DebugMode/" + name, value);
}
static QVariant configValue(const QString &name)
static QVariant configValue(const Key &name)
{
return ICore::settings()->value("DebugMode/" + name);
}
@@ -1658,7 +1658,7 @@ void DebuggerPluginPrivate::reloadDebuggingHelpers()
void DebuggerPluginPrivate::startRemoteCdbSession()
{
const QString connectionKey = "CdbRemoteConnection";
const Key connectionKey = "CdbRemoteConnection";
Kit *kit = findUniversalCdbKit();
QTC_ASSERT(kit, return);