aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlformat/data/disableViaComments/qmlobject.nodisable.qml
blob: 43405667d6dcc0569aa2709160ad2c0e3c019aa9 (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
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick

Item {
    width: 100
    height: 100

    // this should have no effect
    // qmlformat on

    // qmlformat off
    // qmlformat off
    Rectangle {
        width: 200
        height: 200
        color: "red"
    }
    // qmlformat on

    Item {
        // qmlformat off
        Item {
            Item {
                // qmlformat on
                // this should start from 3 * indentsize
            }
        }
    }

    // this disables formatting for the rest of the file
    // qmlformat off
    Rectangle {
        width: 50
        height: 50
        color: "blue"
    }
}