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:
@@ -33,7 +33,7 @@ void MinimizableInfoBars::setPossibleInfoBarEntries(const QList<Utils::InfoBarEn
|
||||
createActions();
|
||||
}
|
||||
|
||||
void MinimizableInfoBars::setSettingsGroup(const QString &settingsGroup)
|
||||
void MinimizableInfoBars::setSettingsGroup(const Key &settingsGroup)
|
||||
{
|
||||
m_settingsGroup = settingsGroup;
|
||||
}
|
||||
@@ -55,10 +55,10 @@ void MinimizableInfoBars::createActions()
|
||||
}
|
||||
}
|
||||
|
||||
QString MinimizableInfoBars::settingsKey(const Id &id) const
|
||||
Key MinimizableInfoBars::settingsKey(const Id &id) const
|
||||
{
|
||||
QTC_CHECK(!m_settingsGroup.isEmpty());
|
||||
return m_settingsGroup + '/' + SETTINGS_PREFIX + id.toString();
|
||||
return m_settingsGroup + '/' + SETTINGS_PREFIX + id.name();
|
||||
}
|
||||
|
||||
void MinimizableInfoBars::createShowInfoBarActions(const ActionCreator &actionCreator) const
|
||||
|
||||
Reference in New Issue
Block a user