blob: d30a50dd6be1ecaa38bf823fdab4eda082be01f2 (
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) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import QmltcTests
Item {
property int cppSingleton1: SingletonType.mySingletonValue
property int cppSingleton2: SingletonType.mySingletonValue
property int qmlSingleton1: SingletonThing.integerProperty
property int qmlSingleton2: SingletonThing.integerProperty
property int cppEnum: SingletonType.Enum // should be 1
property int qmlEnum: SingletonThing.Special // should be 1
function writeSingletonType() {
SingletonType.mySingletonValue = 100
}
function writeSingletonThing() {
SingletonThing.integerProperty = 100
}
}
|