aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmlls/utils/data/findUsages/inlineComponents/inlineComponents.qml
blob: 6631dc344821817711c9a0624880302b7261cec6 (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
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick

Item {

    component Patron: QtObject {
        property int foo
        Component.onCompleted: console.log(foo)
    }

    component Mafik: Patron {
        property int bar: foo
    }

    property int foo // should not be in inlineUsages
    property var realFoo: Mafik {
        function f() {
            return foo; // should be in inlineUsages
        }
    }

    property InlineComponentProvider fromAnotherFile: InlineComponentProvider {}
    property InlineComponentProvider.IC1 fromAnotherFile2: InlineComponentProvider.IC1 {}
}