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

import QtQml

QtObject {

    enum Cats {
        Patron = 8,
        Mafik = 7,
        Kivrik = 2
    }

    property var inner: QtObject {
        enum Cats {
            Patron = -8, // Shouldn't be found
            Mafik = -7,
            Kivrik = -2
        }
    }

    property int main: Enums.Cats.Patron
    property int innerVal: Enums.Patron
    property int illegal1: Cats.Patron // Shouldn't be found
    property int illegal2: Patron // Shouldn't be found
    property int alien: EnumsFromAnotherFile.FromAnotherUniverse
}