Debian Codegraph @

tests/auto/qml/qqmlproperty/data/aliasToBinding.qml

raw
1 import QtQuick 2.7
2
3 Item {
4 id: _window
5 property bool userFontStrikeout: true
6
7 Component.onCompleted: {
8 _box.font.strikeout = Qt.binding(function() { return _window.userFontStrikeout; });
9 }
10
11 Rectangle {
12 id: _box
13 width: 100
14 height: 100
15 property alias font: _text.font
16
17 Text {
18 id: _text
19 anchors.fill: parent
20 text: "Text"
21 }
22 }
23 }