aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/perfprofiler
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-09-22 16:15:27 +0200
committerhjk <hjk@qt.io>2023-09-27 13:25:31 +0000
commit342e066886ff4d472d9e07eb1f5702a548ac3e6e (patch)
treeaf6b09b98c68140e50d752f9da37f74d9736e722 /src/plugins/perfprofiler
parent4629b0f69ec4320b1ac6d8006b2f1957d5024683 (diff)
Utils, all: Standardize on QtcSettings
Change-Id: Id222016f15b1c3bfe6710fe5d0297666d4565ef1 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Diffstat (limited to 'src/plugins/perfprofiler')
-rw-r--r--src/plugins/perfprofiler/perfprofilertool.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/plugins/perfprofiler/perfprofilertool.cpp b/src/plugins/perfprofiler/perfprofilertool.cpp
index 9c9e9d5ec54..6951622e52b 100644
--- a/src/plugins/perfprofiler/perfprofilertool.cpp
+++ b/src/plugins/perfprofiler/perfprofilertool.cpp
@@ -213,12 +213,11 @@ void PerfProfilerTool::createViews()
m_flameGraphView, &PerfProfilerFlameGraphView::selectByTypeId);
// Clear settings if the statistics or flamegraph view isn't there yet.
- QSettings *settings = Core::ICore::settings();
- settings->beginGroup(QLatin1String("AnalyzerViewSettings_") +
- QLatin1String(Constants::PerfProfilerPerspectiveId));
- if (!settings->contains(m_statisticsView->objectName())
- || !settings->contains(m_flameGraphView->objectName())) {
- settings->remove(QString());
+ QtcSettings *settings = Core::ICore::settings();
+ settings->beginGroup(Key("AnalyzerViewSettings_") + Constants::PerfProfilerPerspectiveId);
+ if (!settings->contains(keyFromString(m_statisticsView->objectName()))
+ || !settings->contains(keyFromString(m_flameGraphView->objectName()))) {
+ settings->remove(Key());
}
settings->endGroup();