summaryrefslogtreecommitdiff
path: root/tests/manual/qml/testprojects/plugins/imports/MyPlugin/designer/MyPlugin.metainfo
blob: 52f783ff557e42159268979cc1388b97e8803551 (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
36
37
38
39
40
41
42
43
44
MetaInfo {
    Type {
        name: "MyPlugin.MyComponent"
        icon: ":/qtquickplugin/images/item-icon16.png"

        ItemLibraryEntry {
            name: "My Component"
            category: "My Test Plugin"
            libraryIcon: ":/qtquickplugin/images/item-icon.png"
            version: "1.0"
            requiredImport: "MyPlugin"

            Property {
                name: "text"
                type: "binding"
                value: "qsTr(\"This is text\")"
            }
        }
    }

    Type {
        name: "MyPlugin.MyComponent2"
        icon: ":/qtquickplugin/images/item-icon16.png"

        ItemLibraryEntry {
            name: "My Component 2"
            category: "My Test Plugin"
            libraryIcon: ":/qtquickplugin/images/item-icon.png"
            version: "1.0"
            requiredImport: "MyPlugin"

            Property {
                name: "text"
                type: "binding"
                value: "qsTr(\"This is text\")"
            }

            Property { name: "width"; type: "int"; value: 200; }
            Property { name: "height"; type: "int"; value: 200; }
            Property { name: "color"; type: "QColor"; value: "red"; }
        }
    }

}