forked from qt-creator/qt-creator
Utils, all: Standardize on QtcSettings
Change-Id: Id222016f15b1c3bfe6710fe5d0297666d4565ef1 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -518,7 +518,7 @@ void DiffEditor::toggleSync()
|
||||
IDiffView *DiffEditor::loadSettings()
|
||||
{
|
||||
QTC_ASSERT(currentView(), return nullptr);
|
||||
QSettings *s = ICore::settings();
|
||||
QtcSettings *s = ICore::settings();
|
||||
|
||||
// Read current settings:
|
||||
s->beginGroup(settingsGroupC);
|
||||
@@ -537,9 +537,9 @@ IDiffView *DiffEditor::loadSettings()
|
||||
return view;
|
||||
}
|
||||
|
||||
void DiffEditor::saveSetting(const QString &key, const QVariant &value) const
|
||||
void DiffEditor::saveSetting(const Key &key, const QVariant &value) const
|
||||
{
|
||||
QSettings *s = ICore::settings();
|
||||
QtcSettings *s = ICore::settings();
|
||||
s->beginGroup(settingsGroupC);
|
||||
s->setValue(key, value);
|
||||
s->endGroup();
|
||||
|
||||
@@ -59,7 +59,7 @@ private:
|
||||
void toggleSync();
|
||||
|
||||
IDiffView *loadSettings();
|
||||
void saveSetting(const QString &key, const QVariant &value) const;
|
||||
void saveSetting(const Utils::Key &key, const QVariant &value) const;
|
||||
void updateEntryToolTip();
|
||||
void showDiffView(IDiffView *view);
|
||||
void updateDiffEditorSwitcher();
|
||||
|
||||
Reference in New Issue
Block a user