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