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
@@ -40,12 +40,14 @@ const QString lineBreak = QStringLiteral("<br>");
|
||||
|
||||
bool isDebugViewEnabled()
|
||||
{
|
||||
return (QmlDesigner::QmlDesignerPlugin::instance()->settings().enableDebugView);
|
||||
return QmlDesigner::QmlDesignerPlugin::instance()->settings().value(
|
||||
QmlDesigner::DesignerSettingsKey::ENABLE_DEBUGVIEW).toBool();
|
||||
}
|
||||
|
||||
bool isDebugViewShown()
|
||||
{
|
||||
return (QmlDesigner::QmlDesignerPlugin::instance()->settings().showDebugView);
|
||||
return QmlDesigner::QmlDesignerPlugin::instance()->settings().value(
|
||||
QmlDesigner::DesignerSettingsKey::SHOW_DEBUGVIEW).toBool();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user