forked from qt-creator/qt-creator
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:
committed by
Thomas Hartmann
parent
d8a7c97fcb
commit
3cde937ea1
@@ -1505,6 +1505,8 @@ QVariant NodeMetaInfo::propertyCastedValue(const PropertyName &propertyName, con
|
|||||||
return variant.toFloat();
|
return variant.toFloat();
|
||||||
} else if (typeName == "<cpp>.int") {
|
} else if (typeName == "<cpp>.int") {
|
||||||
return variant.toInt();
|
return variant.toInt();
|
||||||
|
} else if (typeName == "<cpp>.bool") {
|
||||||
|
return variant.toBool();
|
||||||
} else if (copyVariant.convert(typeId)) {
|
} else if (copyVariant.convert(typeId)) {
|
||||||
return copyVariant;
|
return copyVariant;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user