Commit 7ec6c0a9 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: fix for boolean

Booleans might also be called "boolean" in the code model.

Change-Id: I700a5050234e9750df5c7cb1229b1d426e592189
Reviewed-by: default avatarMarco Bubke <>
parent 74119f7a
......@@ -667,7 +667,7 @@ QString templateGeneration(NodeMetaInfo type, NodeMetaInfo superType, const QmlO
emptyTemplate = false;
if (typeName == "bool") {
if (typeName == "bool" || typeName == "boolean") {
qmlTemplate += QString(QLatin1String(
"QWidget {\nlayout: HorizontalLayout {\nLabel {\ntext: \"%1\"\ntoolTip: \"%1\"\n}\nCheckBox {text: backendValues.%2.value\nbackendValue: backendValues.%2\nbaseStateFlag: isBaseState\ncheckable: true\n}\n}\n}\n"
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