aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickflickable/data/parallel.qml
blob: bef8af3b37d44a949574d08b0e551399c708893f (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
34
35
36
37
38
39
40
41
42
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

import QtQuick 2.0

Row {
    id: root
    width: 320
    height: 480
    Flickable {
        id: fl1
        objectName: "fl1"
        width: parent.width / 2
        height: parent.height
        contentHeight: 640
        Rectangle {
            width: fl1.width
            height: 640
            color: fl1.dragging ? "steelblue" : "lightsteelblue"
            Text {
                anchors.centerIn: parent
                text: "flick this"
            }
        }
    }
    Flickable {
        id: fl2
        objectName: "fl2"
        width: parent.width / 2
        height: parent.height
        contentHeight: 640
        Rectangle {
            width: fl2.width
            height: 640
            color: fl2.dragging ? "bisque" : "beige"
            Text {
                anchors.centerIn: parent
                text: "and flick\nthis too"
            }
        }
    }
}