aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata-qt/qmltyperegistrar/qmltyperegistrar.qbs
blob: 68dc83743fb37d3e5a7aac537d352425d7b8a009 (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
import qbs.Utilities

CppApplication {
    name: "myapp"
    Depends { name: "Qt.qml" }

    Qt.qml.importVersion: "1"
    cpp.includePaths: sourceDirectory
    qbs.installPrefix: ""

    files: [
        "main.cpp",
        "person.cpp",
        "person.h",
    ]

    Group {
        files: "example.qml"
        fileTags: "qt.core.resource_data"
    }

    Probe {
        id: versionProbe
        property string version: Qt.core.version
        configure: {
            if (Utilities.versionCompare(version, "5.15") >= 0)
                console.info("has registrar");
            else
                console.info("does not have registrar");
            found = true;
        }
    }
}