~feng-kylin/unity8/OpenUrlInIndicator

« back to all changes in this revision

Viewing changes to Panel/Menus/Overview/OverviewGrid.qml

  • Committer: Tarmac
  • Author(s): Nick Dedekind, Launchpad Translations on behalf of unity-team
  • Date: 2013-07-11 19:50:27 UTC
  • mfrom: (2.5.114 indicators-client)
  • Revision ID: tarmac-20130711195027-yheu3w2oc42c1h7s
Moved indicators-client code into unity8. Fixes: https://bugs.launchpad.net/bugs/1191132, https://bugs.launchpad.net/bugs/1191822.

Approved by PS Jenkins bot, Michał Sawicz, Nicolas d'Offay.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
                objectName: "overviewGridButton" + index
60
60
                width: grid.cellWidth
61
61
                height: grid.cellHeight
62
 
                Image {
63
 
                    id: imageIcon
64
 
                    objectName: "overviewGridButtonImage"
65
 
                    source: iconSource
66
 
                    width: units.gu(4)
67
 
                    height: units.gu(4)
68
 
                    anchors {
69
 
                        centerIn: parent
70
 
                        verticalCenterOffset: -units.gu(1)
71
 
                    }
72
 
                    sourceSize.width: width
73
 
                    sourceSize.height: height
74
 
                    visible: labelIcon.text === ""
75
 
                }
76
 
 
77
 
                Label {
78
 
                    id: labelIcon
79
 
                    text: label
80
 
                    color: "#f3f3e7"
81
 
                    opacity: 0.8
82
 
                    font.family: "Ubuntu"
83
 
                    fontSize: "large"
84
 
                    anchors {
85
 
                        centerIn: parent
86
 
                        verticalCenterOffset: -units.gu(1)
 
62
 
 
63
                Loader {
 
64
                    id: loader
 
65
                    source: widgetSource
 
66
 
 
67
                    width: units.gu(5)
 
68
                    height: units.gu(5)
 
69
                    anchors.centerIn: parent
 
70
                    anchors.verticalCenterOffset: -units.gu(1)
 
71
 
 
72
                    onLoaded: {
 
73
                        for(var pName in indicatorProperties) {
 
74
                            if (item.hasOwnProperty(pName)) {
 
75
                                item[pName] = indicatorProperties[pName]
 
76
                            }
 
77
                        }
87
78
                    }
88
79
                }
89
80