on xenial help sign in
update qmltypes
commitbe8d9b4f86ea47f78fa192ec2ffe81f084f134a5 authorNick Dedekind <nick.dedekind@canonical.com> dateTue 11 Nov 2014, 10:57 (12 years ago) parentf8a870c
2 files changed+63−7
plugins/Unity/Indicators/Indicators.qmltypes+18−7 tests/mocks/Lights/Lights.qmltypes+45
plugins/Unity/Indicators/Indicators.qmltypes+18−7
@@ -7,6 +7,14 @@ import QtQuick.tooling 1.1
77// 'qmlplugindump -notrelocatable Unity.Indicators 0.1 plugins'
88
99Module {
10+ Component {
11+ name: "ActionRootState"
12+ prototype: "RootStateObject"
13+ exports: ["Unity.Indicators/ActionRootState 0.1"]
14+ exportMetaObjectRevisions: [0]
15+ Property { name: "actionGroup"; type: "QDBusActionGroup"; isPointer: true }
16+ Property { name: "actionName"; type: "string" }
17+ }
1018 Component {
1119 name: "ActionState"
1220 prototype: "QObject"
@@ -23,7 +31,6 @@ Module {
2331 }
2432 }
2533 }
26− Component { name: "ActionStateParser"; prototype: "QObject" }
2734 Component {
2835 name: "FlatMenuProxyModelRole"
2936 prototype: "QObject"
@@ -148,6 +155,14 @@ Module {
148155 exportMetaObjectRevisions: [0]
149156 Property { name: "active"; type: "bool"; isReadonly: true }
150157 }
158+ Component {
159+ name: "ModelActionRootState"
160+ prototype: "RootStateObject"
161+ exports: ["Unity.Indicators/ModelActionRootState 0.1"]
162+ exportMetaObjectRevisions: [0]
163+ Property { name: "menu"; type: "UnityMenuModel"; isPointer: true }
164+ Signal { name: "indexChanged" }
165+ }
151166 Component {
152167 name: "ModelPrinter"
153168 prototype: "QObject"
@@ -194,11 +209,8 @@ Module {
194209 }
195210 Component { name: "QIdentityProxyModel"; prototype: "QAbstractProxyModel" }
196211 Component {
197− name: "RootActionState"
198− prototype: "ActionStateParser"
199− exports: ["Unity.Indicators/RootActionState 0.1"]
200− exportMetaObjectRevisions: [0]
201− Property { name: "menu"; type: "UnityMenuModel"; isPointer: true }
212+ name: "RootStateObject"
213+ prototype: "QObject"
202214 Property { name: "valid"; type: "bool"; isReadonly: true }
203215 Property { name: "title"; type: "string"; isReadonly: true }
204216 Property { name: "leftLabel"; type: "string"; isReadonly: true }
@@ -207,7 +219,6 @@ Module {
207219 Property { name: "accessibleName"; type: "string"; isReadonly: true }
208220 Property { name: "visible"; type: "bool"; isReadonly: true }
209221 Signal { name: "updated" }
210− Signal { name: "indexChanged" }
211222 }
212223 Component {
213224 name: "UnityMenuModelCache"
tests/mocks/Lights/Lights.qmltypesnew file+45
@@ -0,0 +1,45 @@
1+import QtQuick.tooling 1.1
2+
3+// This file describes the plugin-supplied types contained in the library.
4+// It is used for QML tooling purposes only.
5+//
6+// This file was auto-generated by:
7+// 'qmlplugindump -notrelocatable Lights 0.1 tests/mocks'
8+
9+Module {
10+ Component {
11+ name: "Lights"
12+ prototype: "QObject"
13+ exports: ["Lights/Lights 0.1"]
14+ isCreatable: false
15+ isSingleton: true
16+ exportMetaObjectRevisions: [0]
17+ Enum {
18+ name: "State"
19+ values: {
20+ "Off": 0,
21+ "On": 1
22+ }
23+ }
24+ Property { name: "state"; type: "State" }
25+ Property { name: "color"; type: "QColor" }
26+ Property { name: "onMillisec"; type: "int" }
27+ Property { name: "offMillisec"; type: "int" }
28+ Signal {
29+ name: "stateChanged"
30+ Parameter { name: "newState"; type: "State" }
31+ }
32+ Signal {
33+ name: "colorChanged"
34+ Parameter { name: "color"; type: "QColor" }
35+ }
36+ Signal {
37+ name: "onMillisecChanged"
38+ Parameter { name: "onMs"; type: "int" }
39+ }
40+ Signal {
41+ name: "offMillisecChanged"
42+ Parameter { name: "offMs"; type: "int" }
43+ }
44+ }
45+}