forked from qt-creator/qt-creator
QmlDesigner: Add commandline option for QML lite designer
Change-Id: I5bcb19b5664b9ffe8e113d51371b3858c5c7aa6a Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
This commit is contained in:
@@ -15,5 +15,11 @@
|
||||
"Category" : "Qt Quick",
|
||||
"Description" : "Provides support code for the qml designer and co..",
|
||||
"Url" : "http://www.qt.io",
|
||||
"Arguments" : [
|
||||
{
|
||||
"Name" : "-qml-lite-designer",
|
||||
"Description" : "Enable QML Lite Designer"
|
||||
}
|
||||
],
|
||||
${IDE_PLUGIN_DEPENDENCIES}
|
||||
}
|
||||
|
||||
@@ -85,6 +85,9 @@ bool QmlDesignerBasePlugin::isLiteModeEnabled()
|
||||
|
||||
bool QmlDesignerBasePlugin::initialize(const QStringList &, QString *)
|
||||
{
|
||||
if (QCoreApplication::arguments().contains("-qml-lite-designer"))
|
||||
enbableLiteMode();
|
||||
|
||||
d = std::make_unique<Data>();
|
||||
if (Core::ICore::settings()->value("QML/Designer/StandAloneMode", false).toBool())
|
||||
d->studioConfigSettingsPage = std::make_unique<StudioConfigSettingsPage>();
|
||||
|
||||
Reference in New Issue
Block a user