diff --git a/src/plugins/perfprofiler/perfsettings.cpp b/src/plugins/perfprofiler/perfsettings.cpp index 9e9781a4fda..e8524e6395e 100644 --- a/src/plugins/perfprofiler/perfsettings.cpp +++ b/src/plugins/perfprofiler/perfsettings.cpp @@ -432,7 +432,7 @@ void PerfSettings::readGlobalSettings() settings->beginGroup(QLatin1String(Constants::AnalyzerSettingsGroupId)); Store map = defaults; for (Store::ConstIterator it = defaults.constBegin(); it != defaults.constEnd(); ++it) - map.insert(it.key(), settings->value(it.key(), it.value())); + map.insert(it.key(), settings->value(stringFromKey(it.key()), it.value())); settings->endGroup(); fromMap(map); @@ -445,7 +445,7 @@ void PerfSettings::writeGlobalSettings() const Store map; toMap(map); for (Store::ConstIterator it = map.constBegin(); it != map.constEnd(); ++it) - settings->setValue(it.key(), it.value()); + settings->setValue(stringFromKey(it.key()), it.value()); settings->endGroup(); } diff --git a/src/plugins/screenrecorder/screenrecorderplugin.cpp b/src/plugins/screenrecorder/screenrecorderplugin.cpp index f84e866e935..a0993593f04 100644 --- a/src/plugins/screenrecorder/screenrecorderplugin.cpp +++ b/src/plugins/screenrecorder/screenrecorderplugin.cpp @@ -28,6 +28,7 @@ #include #include +#include #include #include