~diegosarmentero/unity8/purchase-component

« back to all changes in this revision

Viewing changes to plugins/Unity/Indicators/qml/IndicatorBase.qml

Allow setting different indicator positions for different profiles.

Approved by PS Jenkins bot, Nick Dedekind.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
Item {
25
25
    id: indicatorItem
26
26
 
27
 
    enabled: menuObjectPaths.hasOwnProperty(device)
 
27
    enabled: menuObjectPath != ""
28
28
 
29
29
    //const
30
30
    property string busName
31
31
    property string actionsObjectPath
32
 
    property var menuObjectPaths: undefined
33
 
    readonly property string device: "phone"
 
32
    property string menuObjectPath
34
33
    property string rootMenuType: "com.canonical.indicator.root"
35
34
 
36
 
    property string deviceMenuObjectPath: menuObjectPaths.hasOwnProperty(device) ? menuObjectPaths[device] : ""
 
35
    property string deviceMenuObjectPath: menuObjectPath
37
36
 
38
37
    property alias menuModel: cachedModel.model
39
38