forked from qt-creator/qt-creator
QmlDesigner: improve settings for easy adding new values
- move settings keys constants to the settings file - transform settings to a QHash Change-Id: I1d41476421ce569cea3a4bd1c956d3bc0c6643f4 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
committed by
Thomas Hartmann
parent
85290a9313
commit
ff3ccba7c1
@@ -89,7 +89,7 @@ void DebugViewWidget::setDebugViewEnabled(bool b)
|
||||
void DebugViewWidget::enabledCheckBoxToggled(bool b)
|
||||
{
|
||||
DesignerSettings settings = QmlDesignerPlugin::instance()->settings();
|
||||
settings.warningsInDesigner = b;
|
||||
settings.insert(DesignerSettingsKey::WARNING_FOR_FEATURES_IN_DESIGNER, b);
|
||||
QmlDesignerPlugin::instance()->setSettings(settings);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user