21 import QMenuModel 0.1 as QMenuModel
22 import Unity.Indicators 0.1 as Indicators
27 property string busName:
""
28 property string actionsObjectPath:
""
29 property string menuObjectPath:
""
31 readonly
property bool ready: busName!==
"" && actionsObjectPath!==
"" && menuObjectPath!==
""
33 property QtObject model: {
38 var component = Indicators.UnityMenuModelCache.model(menuObjectPath);
40 component = modelComponent.createObject(cachedModel);
49 QMenuModel.UnityMenuModel {
51 busName: cachedModel.busName
52 actions: {
"indicator": cachedModel.actionsObjectPath }
53 menuObjectPath: cachedModel.menuObjectPath
55 Component.onCompleted: {
56 Indicators.UnityMenuModelCache.registerModel(cachedModel.menuObjectPath, unityModel);