aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicklistview/data/stickyPositioning-footer.qml
blob: 1b398138c864ba15367e059015afc7ca7eaaef25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick 2.4

Rectangle {
    width: 240
    height: 320
    ListView {
        id: list
        objectName: "list"
        width: 100
        height: 100
        cacheBuffer: 0
        anchors.centerIn: parent
        model: testModel
        orientation: testOrientation
        layoutDirection: testLayoutDirection
        verticalLayoutDirection: testVerticalLayoutDirection
        delegate: Rectangle {
            width: 10
            height: 10
            border.width: 1
            border.color: "gray"
        }
        footerPositioning: ListView.PullBackFooter
        footer: Rectangle {
            width: 10
            height: 10
            color: "blue"
            objectName: "footer"
        }
    }
}