diff --git a/share/qtcreator/templates/wizards/files/js/file.js b/share/qtcreator/templates/wizards/files/js/file.js index b17567bd0bc79bed326ee7884f4f3f5e4b647614..8e7f43ee120dbdf24cbf4b5a1e35b49c318b83d1 100644 --- a/share/qtcreator/templates/wizards/files/js/file.js +++ b/share/qtcreator/templates/wizards/files/js/file.js @@ -1,4 +1,4 @@ -@if '%{Stateless}' +@if %{Stateless} .pragma library @endif diff --git a/share/qtcreator/templates/wizards/files/js/wizard.json b/share/qtcreator/templates/wizards/files/js/wizard.json index 80165502e1f6b6f1eae50b10379d3d80488139f8..017795cd23ac78464a6f87f4239bbb071c158a6f 100644 --- a/share/qtcreator/templates/wizards/files/js/wizard.json +++ b/share/qtcreator/templates/wizards/files/js/wizard.json @@ -29,8 +29,6 @@ "span": true, "data": { - "checkedValue": "yes", - "uncheckedValue": "", "checked": false } } diff --git a/share/qtcreator/templates/wizards/projects/qmake/qtquickapplication/wizard.json b/share/qtcreator/templates/wizards/projects/qmake/qtquickapplication/wizard.json index 25c22b68c55d378474476875dd1a44f74f198591..841873a91d5a00ccd4e4ab711c28a9b1fc4ef97b 100644 --- a/share/qtcreator/templates/wizards/projects/qmake/qtquickapplication/wizard.json +++ b/share/qtcreator/templates/wizards/projects/qmake/qtquickapplication/wizard.json @@ -73,8 +73,6 @@ "type": "CheckBox", "data": { - "checkedValue": true, - "uncheckedValue": false, "checked": false } } diff --git a/share/qtcreator/templates/wizards/projects/qmake/qtquickcontrolsapplication/wizard.json b/share/qtcreator/templates/wizards/projects/qmake/qtquickcontrolsapplication/wizard.json index 7d3cec485788ec825834e2f818c5aedcf6f73e2d..562fb15ff19ab3901bdb36b17897b25ba9e4a2fe 100644 --- a/share/qtcreator/templates/wizards/projects/qmake/qtquickcontrolsapplication/wizard.json +++ b/share/qtcreator/templates/wizards/projects/qmake/qtquickcontrolsapplication/wizard.json @@ -81,8 +81,6 @@ "type": "CheckBox", "data": { - "checkedValue": true, - "uncheckedValue": false, "checked": true } }, @@ -92,8 +90,6 @@ "type": "CheckBox", "data": { - "checkedValue": true, - "uncheckedValue": false, "checked": true } } diff --git a/share/qtcreator/templates/wizards/projects/qmlproject/qtquickapplication/wizard.json b/share/qtcreator/templates/wizards/projects/qmlproject/qtquickapplication/wizard.json index 48a06a902e8b608eedb672cefe414e59f8605ff0..30d885eb00a3d64e5c5b725c1ed5289b5df9f338 100644 --- a/share/qtcreator/templates/wizards/projects/qmlproject/qtquickapplication/wizard.json +++ b/share/qtcreator/templates/wizards/projects/qmlproject/qtquickapplication/wizard.json @@ -73,8 +73,6 @@ "type": "CheckBox", "data": { - "checkedValue": true, - "uncheckedValue": false, "checked": false } } diff --git a/share/qtcreator/templates/wizards/projects/qmlproject/qtquickcontrolsapplication/wizard.json b/share/qtcreator/templates/wizards/projects/qmlproject/qtquickcontrolsapplication/wizard.json index dfa8a6822c570a54166c50bf9d8d161d1a5ee215..ead3eaf47c8de1dafc0666217b99d4d173c9efe6 100644 --- a/share/qtcreator/templates/wizards/projects/qmlproject/qtquickcontrolsapplication/wizard.json +++ b/share/qtcreator/templates/wizards/projects/qmlproject/qtquickcontrolsapplication/wizard.json @@ -81,8 +81,6 @@ "type": "CheckBox", "data": { - "checkedValue": true, - "uncheckedValue": false, "checked": true } } diff --git a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp index 8923419b0f9fd1423be9844785bfab8a127c44a0..282aa229c1ee568ca8eed9e2283d182d1f9f4bac 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp +++ b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp @@ -617,8 +617,8 @@ bool JsonFieldPage::CheckBoxField::parseData(const QVariant &data, QString *erro QVariantMap tmp = data.toMap(); - m_checkedValue = tmp.value(QLatin1String("checkedValue"), QLatin1String("0")).toString(); - m_uncheckedValue = tmp.value(QLatin1String("uncheckedValue"), QLatin1String("1")).toString(); + m_checkedValue = tmp.value(QLatin1String("checkedValue"), true).toString(); + m_uncheckedValue = tmp.value(QLatin1String("uncheckedValue"), false).toString(); if (m_checkedValue == m_uncheckedValue) { *errorMessage= QCoreApplication::translate("ProjectExplorer::JsonFieldPage", "CheckBox values for checked and unchecked state are identical.");