forked from qt-creator/qt-creator
Core: Save less settings
Try to not save settings that weren't changed from their default, and make it possible for defaults to change in the future. Task-number: QTCREATORBUG-24762 Change-Id: If469b72573791bc92ed535edf00271ef09b55386 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -36,6 +36,10 @@ class QSettings;
|
||||
class QAbstractItemModel;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace Utils {
|
||||
class QtcSettings;
|
||||
}
|
||||
|
||||
namespace Core {
|
||||
class INavigationWidgetFactory;
|
||||
class Command;
|
||||
@@ -87,7 +91,7 @@ public:
|
||||
void setFactories(const QList<INavigationWidgetFactory*> &factories);
|
||||
|
||||
QString settingsGroup() const;
|
||||
void saveSettings(QSettings *settings);
|
||||
void saveSettings(Utils::QtcSettings *settings);
|
||||
void restoreSettings(QSettings *settings);
|
||||
|
||||
QWidget *activateSubWidget(Utils::Id factoryId, int preferredPosition);
|
||||
|
||||
Reference in New Issue
Block a user