forked from qt-creator/qt-creator
QmlDesigner: Avoid error messages when adding effect
* Removing the summary page
* Adding DoNotOpenFile option
By default, the wizard expects to open a file.
Setting DoNotOpenFile to true does suppress this.
(cherry picked from commit 7b9303007a
)
Task-number: QDS-8151
Change-Id: I62264733788dbbe1b017beaa428356548a1a3692
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
aea333e042
commit
9269fb2d95
@@ -11,7 +11,10 @@
|
||||
"enabled": "%{JS: value('Features').indexOf('QmlDesigner.Wizards.Enterprise') >= 0}",
|
||||
"featuresRequired": [ "QmlDesigner.Wizards.Enterprise" ],
|
||||
|
||||
"options": { "key": "DefaultSuffix", "value": "qep" },
|
||||
"options": [
|
||||
{ "key": "DefaultSuffix", "value": "qep" },
|
||||
{ "key": "DoNotOpenFile", "value": "true" }
|
||||
],
|
||||
|
||||
"pages" :
|
||||
[
|
||||
@@ -19,11 +22,6 @@
|
||||
"trDisplayName": "Location",
|
||||
"trShortTitle": "Location",
|
||||
"typeId": "File"
|
||||
},
|
||||
{
|
||||
"trDisplayName": "Project Management",
|
||||
"trShortTitle": "Summary",
|
||||
"typeId": "Summary"
|
||||
}
|
||||
],
|
||||
"generators" :
|
||||
|
@@ -442,7 +442,7 @@ QString JsonWizard::evaluate(const QVariant &v) const
|
||||
void JsonWizard::openFiles(const JsonWizard::GeneratorFiles &files)
|
||||
{
|
||||
QString errorMessage;
|
||||
bool openedSomething = false;
|
||||
bool openedSomething = stringValue("DoNotOpenFile") == "true";
|
||||
for (const JsonWizard::GeneratorFile &f : files) {
|
||||
const Core::GeneratedFile &file = f.file;
|
||||
if (!QFileInfo::exists(file.path())) {
|
||||
|
Reference in New Issue
Block a user