forked from qt-creator/qt-creator
Utils: Use QtcSettings
Fixes compile errors with Qt 6.2.4. Change-Id: Ia97d5fcbeb80ee1242fd4c2425bc7f325dad8953 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -1152,7 +1152,7 @@ void MainWindow::aboutToShutdown()
|
||||
|
||||
void MainWindow::readSettings()
|
||||
{
|
||||
QSettings *settings = PluginManager::settings();
|
||||
QtcSettings *settings = PluginManager::settings();
|
||||
settings->beginGroup(QLatin1String(settingsGroup));
|
||||
|
||||
if (m_overrideColor.isValid()) {
|
||||
@@ -1160,7 +1160,7 @@ void MainWindow::readSettings()
|
||||
// Get adapted base color.
|
||||
m_overrideColor = StyleHelper::baseColor();
|
||||
} else {
|
||||
StyleHelper::setBaseColor(settings->value(QLatin1String(colorKey),
|
||||
StyleHelper::setBaseColor(settings->value(colorKey,
|
||||
QColor(StyleHelper::DEFAULT_BASE_COLOR)).value<QColor>());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user