aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlsettings/data/siblings.qml
blob: 548a0869dac6a133ac44f4c4e9ec6eb3bcd84aa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
import QtQuick 2.2
import Qt.labs.settings 1.0

Item {
    id: root

    Item {
        id: sibling1
        property string prop1: "value1"
    }

    Settings {
        property alias alias1: sibling1.prop1
        property alias alias2: sibling2.prop2
    }

    Item {
        id: sibling2
        property string prop2: "value2"
    }
}