diff options
Diffstat (limited to 'tests/auto/qml/qqmlproperty/data/bindToNonQObjectTarget.qml')
-rw-r--r-- | tests/auto/qml/qqmlproperty/data/bindToNonQObjectTarget.qml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlproperty/data/bindToNonQObjectTarget.qml b/tests/auto/qml/qqmlproperty/data/bindToNonQObjectTarget.qml new file mode 100644 index 0000000000..d8a06aa5f9 --- /dev/null +++ b/tests/auto/qml/qqmlproperty/data/bindToNonQObjectTarget.qml @@ -0,0 +1,20 @@ +import QtQuick + +Item { + id: top; + visible:true; + width:300; + height:300 + Text { + id: text + width: 30; height: 30 + text: "1234.56" + font.bold: true + Binding { + target: text.font // which is not a QObject, so can't use it as a binding target + property: 'bold' + value: false; + when: width < 30 + } + } +} |