aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicklistview/data/stickyPositioning-header.qml
blob: c0f2a5b2fbc25729316ae23b29394bbe54dcc268 (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"
        }
        headerPositioning: ListView.PullBackHeader
        header: Rectangle {
            width: 10
            height: 10
            color: "red"
            objectName: "header"
        }
    }
}