Commit 711f54bd authored by Tim Jenssen's avatar Tim Jenssen
Browse files

QmlDesigner: move static methods



Change-Id: I3f1998ddbddadd9ffc782d1ca87884564d6ad83c
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@theqtcompany.com>
parent 9f353b56
......@@ -130,6 +130,18 @@ static bool shouldAssertInException()
return !processEnvironment.value("QMLDESIGNER_ASSERT_ON_EXCEPTION").isEmpty();
}
static bool warningsForQmlFilesInsteadOfUiQmlEnabled()
{
DesignerSettings settings = QmlDesignerPlugin::instance()->settings();
return settings.value(DesignerSettingsKey::WARNING_FOR_QML_FILES_INSTEAD_OF_UIQML_FILES).toBool();
}
static bool showWarningsForFeaturesInDesigner()
{
DesignerSettings settings = QmlDesignerPlugin::instance()->settings();
return settings.value(DesignerSettingsKey::WARNING_FOR_FEATURES_IN_DESIGNER).toBool();
}
QmlDesignerPlugin::QmlDesignerPlugin()
{
m_instance = this;
......@@ -298,18 +310,6 @@ void QmlDesignerPlugin::createDesignModeWidget()
});
}
static bool warningsForQmlFilesInsteadOfUiQmlEnabled()
{
DesignerSettings settings = QmlDesignerPlugin::instance()->settings();
return settings.value(DesignerSettingsKey::WARNING_FOR_QML_FILES_INSTEAD_OF_UIQML_FILES).toBool();
}
static bool showWarningsForFeaturesInDesigner()
{
DesignerSettings settings = QmlDesignerPlugin::instance()->settings();
return settings.value(DesignerSettingsKey::WARNING_FOR_FEATURES_IN_DESIGNER).toBool();
}
void QmlDesignerPlugin::showDesigner()
{
QTC_ASSERT(!d->documentManager.hasCurrentDesignDocument(), return);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment