diff options
author | hjk <hjk@qt.io> | 2023-09-05 15:25:26 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2023-09-27 09:41:44 +0000 |
commit | d6fe357d81da96475c02eb3c73f660d8121381e4 (patch) | |
tree | bd260d5b3e69f83e9fd31293ee2b44f4b307576f /src/plugins/designer | |
parent | d3b9b9b2d14eebf932a8c94e57a584fac06e486d (diff) |
Utils: Use a proper class as Key
The Key encapsulates now a QByteArray.
Plan is to use QByteArray::fromRawData on literals, but that's not
active yet due to an unclear ASAN report, see the gerrit discussion.
For now we also paddle back when interfacing QSettings, instead of mimicing
writing a QVariantMap (and fail in some corners), always convert
the Store. This is meant to go away in the future when code paths
are better controled.
Change-Id: Id1206a434d511f8003903d5322c7c9bd5f5fb859
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Diffstat (limited to 'src/plugins/designer')
-rw-r--r-- | src/plugins/designer/settingsmanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/designer/settingsmanager.cpp b/src/plugins/designer/settingsmanager.cpp index 1cef5f4b074..59a032595d4 100644 --- a/src/plugins/designer/settingsmanager.cpp +++ b/src/plugins/designer/settingsmanager.cpp @@ -13,10 +13,10 @@ namespace Designer::Internal { static Key addPrefix(const QString &name) { - Key result = keyFromString(name); + Key result; if (Core::ICore::settings()->group().isEmpty()) - result.prepend("Designer"); - return result; + result = "Designer"; + return Key(result + name.toUtf8()); } void SettingsManager::beginGroup(const QString &prefix) |