diff options
Diffstat (limited to 'tests/auto/quick/qquicklistview/data/margins2.qml')
-rw-r--r-- | tests/auto/quick/qquicklistview/data/margins2.qml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicklistview/data/margins2.qml b/tests/auto/quick/qquicklistview/data/margins2.qml new file mode 100644 index 0000000000..e11c803c4b --- /dev/null +++ b/tests/auto/quick/qquicklistview/data/margins2.qml @@ -0,0 +1,29 @@ +import QtQuick 2.0 + +Item { + width: 200; height: 200 + Page { + Rectangle { + anchors.fill: parent + color: "lightsteelblue" + } + ListView { + objectName: "listview" + topMargin: 20 + bottomMargin: 20 + leftMargin: 20 + rightMargin: 20 + anchors.fill: parent + + model: 20 + delegate: Rectangle { + color: "skyblue" + width: 60; height: 60 + Text { + id: txt + text: "test" + index + } + } + } + } +} |