TextEditor: Push back explicit use of core settings

It's meant to be handled via aspects in the long term.

Change-Id: I2a2792f7bb5e75ede18e2328bb31729c212e30e6
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
hjk
2023-07-17 13:54:37 +02:00
parent 74ff10001a
commit f10d0bad01
16 changed files with 74 additions and 96 deletions

View File

@@ -4,9 +4,10 @@
#include "icodestylepreferences.h"
#include "codestylepool.h"
#include "tabsettings.h"
#include <utils/settingsutils.h>
#include <QSettings>
#include <coreplugin/icore.h>
#include <utils/settingsutils.h>
using namespace TextEditor;
@@ -211,14 +212,14 @@ void ICodeStylePreferences::setSettingsSuffix(const QString &suffix)
d->m_settingsSuffix = suffix;
}
void ICodeStylePreferences::toSettings(const QString &category, QSettings *s) const
void ICodeStylePreferences::toSettings(const QString &category) const
{
Utils::toSettings(d->m_settingsSuffix, category, s, this);
Utils::toSettings(d->m_settingsSuffix, category, Core::ICore::settings(), this);
}
void ICodeStylePreferences::fromSettings(const QString &category, QSettings *s)
void ICodeStylePreferences::fromSettings(const QString &category)
{
Utils::fromSettings(d->m_settingsSuffix, category, s, this);
Utils::fromSettings(d->m_settingsSuffix, category, Core::ICore::settings(), this);
}
QVariantMap ICodeStylePreferences::toMap() const