forked from qt-creator/qt-creator
Utils: Use a bit more Key and Store
Also, separate the Key into a separate header to minimiz impact on #include load. Change-Id: I4f719cad4d23a71a9c228d0b7f5c2409fd6e24d5 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -27,7 +27,7 @@ public:
|
||||
bool m_readOnly = false;
|
||||
bool m_temporarilyReadOnly = false;
|
||||
bool m_isAdditionalTabDisabled = false;
|
||||
QString m_settingsSuffix;
|
||||
Key m_settingsSuffix;
|
||||
};
|
||||
|
||||
}
|
||||
@@ -207,17 +207,17 @@ void ICodeStylePreferences::setCurrentDelegate(const QByteArray &id)
|
||||
setCurrentDelegate(d->m_pool->codeStyle(id));
|
||||
}
|
||||
|
||||
void ICodeStylePreferences::setSettingsSuffix(const QString &suffix)
|
||||
void ICodeStylePreferences::setSettingsSuffix(const Key &suffix)
|
||||
{
|
||||
d->m_settingsSuffix = suffix;
|
||||
}
|
||||
|
||||
void ICodeStylePreferences::toSettings(const QString &category) const
|
||||
void ICodeStylePreferences::toSettings(const Key &category) const
|
||||
{
|
||||
Utils::toSettings(d->m_settingsSuffix, category, Core::ICore::settings(), this);
|
||||
}
|
||||
|
||||
void ICodeStylePreferences::fromSettings(const QString &category)
|
||||
void ICodeStylePreferences::fromSettings(const Key &category)
|
||||
{
|
||||
Utils::fromSettings(d->m_settingsSuffix, category, Core::ICore::settings(), this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user