aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltc/QmltcTests/qtbug120700_main.qml
blob: 0796d0073227d211bb71147c045e9ef49d20d750 (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
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick
import QmltcTests 1.0

TypeForCustomInitialization {
    id: myWindow
    required property int someValue

    property alias someValueAlias: myWindow.someValue
    property int someValueBinding: someValue + 1

    property bool wasSomeValueChanged: false

    property int someComplexValueThatWillBeSet: { return 5 }
    property int someComplexValueThatWillNotBeSet: { return 5 }

    property list<int> valueTypeList : []
    property list<Item> objectTypeList : []

    //QTBUG-114403: onValueChanged should not trigger when setting
    //the initial values.
    onSomeValueChanged: { wasSomeValueChanged = true; }
}