aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlformat/data/disableViaComments/scriptExpressions.nodisable.qml
blob: 0c64da0e8bbe296c87e11799cce39299efcf71fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick

Item {
    function doSomething() {
        // qmlformat off
        console.log("This function is not formatted by qmlformat");
        // qmlformat on
        x = 12;
    }

    height: 100
    width: 100

    Rectangle {
        color: "blue"
        height: 50
        width: 50
    }
}