QmlDesigner: Fix casting of <cpp>.bool

Font.bold is of type <cpp>.bool and we did not recognize it.

Task-number: QDS-5274
Change-Id: I420dc62e1f1dc8b9e22a2c0678c882a72d8b0907
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Thomas Hartmann
2021-10-13 18:52:55 +02:00
committed by Thomas Hartmann
parent d8a7c97fcb
commit 3cde937ea1

View File

@@ -1505,6 +1505,8 @@ QVariant NodeMetaInfo::propertyCastedValue(const PropertyName &propertyName, con
return variant.toFloat();
} else if (typeName == "<cpp>.int") {
return variant.toInt();
} else if (typeName == "<cpp>.bool") {
return variant.toBool();
} else if (copyVariant.convert(typeId)) {
return copyVariant;
}