forked from qt-creator/qt-creator
Refactor Locator filter settings saving
Unify setting saving. Do not write settings that stay at the default, so defaults could change and take effect. For this we explicitly differentiate between default and user settings. Make QJsonDocument the basis for saving settings, because QDataStream cannot really handle structured data where parts could be missing. Write locator settings to a different settings group, so we do not destroy reading older settings from older Qt Creator versions. Task-number: QTCREATORBUG-24762 Change-Id: I5909e2d79313f6fc26159bb644fdfb43781b6c38 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -44,8 +44,8 @@ FunctionFilter::FunctionFilter(LocatorData *data, QObject *parent)
|
||||
{
|
||||
setId("Functions");
|
||||
setDisplayName(tr("QML Functions"));
|
||||
setShortcutString("m");
|
||||
setIncludedByDefault(false);
|
||||
setDefaultShortcutString("m");
|
||||
setDefaultIncludedByDefault(false);
|
||||
}
|
||||
|
||||
FunctionFilter::~FunctionFilter() = default;
|
||||
|
||||
Reference in New Issue
Block a user