aboutsummaryrefslogtreecommitdiffstats
path: root/tests/baseline/data/effects/flip.qml
blob: 6895b877ed652cf2b33cae0368b5bd2c589a682a (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
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick
import QtQuick3D
import QtQuick3D.Effects

GridView {
    width: 400
    height: 400
    cellWidth: 200
    cellHeight: 200

    model: 4

    Flip { id: e0 }
    Flip { id: e1; flipHorizontally: false }
    Flip { id: e2; flipVertically: false }
    Flip { id: e3; flipHorizontally: false; flipVertically: false }

    delegate: PlainView {
        effect: index == 0 ? e0 : index == 1 ? e1 : index == 2 ? e2 : e3
    }
}