aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/qmlUsing.qml
blob: 29e66539f7854fda92d383da7ce1bc3a445a8ecd (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
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

pragma Strict

import QtQml
import TestTypes as T

T.UsingUserObject {
    id: self
    property int valA: val.a
    // property int valB: val.getB()
    property int myA: a
    property int myB: getB()
    property int myA2: self.a
    property int myB2: self.getB()

    function twiddle() {
        val.a = 55
        // val.setB(56)
        a = 57
        setB(58)
        self.a = 59
        self.setB(60)
    }
}