blob: 6584ab9e195f2b92d4730d8db0e3646f7f742668 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick 2.0
import Qt.test 1.0
Item {
id: arbitraryVariantConsumer
property MyArbitraryVariantProvider a: MyArbitraryVariantProvider { id: arbitraryVariantProvider }
property int sideEffect: 10
function callCppFunction() {
// in this case, we call a nonconst CPP function with no return value and no arguments.
arbitraryVariantConsumer.sideEffect = arbitraryVariantConsumer.sideEffect + 2;
arbitraryVariantProvider.incrementVariantChangeCount();
}
}
|