aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmlls/utils/data/findUsages/groupPropertyUsage/groupPropertyUsage.qml
blob: 167ccbb30ea173055d1b56e21498338635c63048 (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
27
28
29
30
31
32
33
34
35
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick

Text {
    id: textRoot

    Test {
        id: test
        myText {
            font {
                pixelSize: 12
                family: "serif"
            }
        }
    }

    component Test : Text{
        property Text myText
    }

    font.family: test.myText.font.family
    font {
        pixelSize: 12
    }

    Item {
        property var family // should not be in groupPropertyUsages1
        property int font // should not be in groupPropertyUsages2

        property var realFont: textRoot.font // should be in groupPropertyUsages2
        property var realFamily: textRoot.font.family // should be in groupPropertyUsages1
    }
}