diff options
Diffstat (limited to 'tests/auto/quick/qquicklistview2/data/bindOnHeaderAndFooterYPosition.qml')
-rw-r--r-- | tests/auto/quick/qquicklistview2/data/bindOnHeaderAndFooterYPosition.qml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicklistview2/data/bindOnHeaderAndFooterYPosition.qml b/tests/auto/quick/qquicklistview2/data/bindOnHeaderAndFooterYPosition.qml new file mode 100644 index 0000000000..a484a154a7 --- /dev/null +++ b/tests/auto/quick/qquicklistview2/data/bindOnHeaderAndFooterYPosition.qml @@ -0,0 +1,29 @@ +import QtQuick + +ListView { + width: 300 + height: 200 + spacing: 20 + orientation: ListView.Horizontal + + header: Rectangle { + y: (ListView.view.height - height) / 2 + color: 'tomato' + width: 50 + height: 50 + } + + footer: Rectangle { + y: (ListView.view.height - height) / 2 + color: 'lime' + width: 50 + height: 50 + } + + model: 3 + delegate: Text { + text: 'Foobar' + verticalAlignment: Text.AlignVCenter + height: ListView.view.height + } +} |