Merge lp:~renatofilho/indicators-client/fix-1186373 into lp:indicators-client

Proposed by Renato Araujo Oliveira Filho
Status: Merged
Approved by: Sergio Schvezov
Approved revision: 210
Merged at revision: 210
Proposed branch: lp:~renatofilho/indicators-client/fix-1186373
Merge into: lp:indicators-client
Diff against target: 193 lines (+26/-22)
8 files modified
chewieui/Ubuntu/ChewieUI/ButtonMenu.qml (+3/-2)
plugins/messagingplugin/qml/ActionButton.qml (+3/-3)
plugins/messagingplugin/qml/ActionTextField.qml (+1/-1)
plugins/messagingplugin/qml/GroupedMessage.qml (+7/-6)
plugins/messagingplugin/qml/HeroMessage.qml (+5/-5)
plugins/messagingplugin/qml/QuickReply.qml (+4/-2)
plugins/messagingplugin/qml/SnapDecision.qml (+2/-2)
plugins/messagingplugin/qml/TextMessage.qml (+1/-1)
To merge this branch: bzr merge lp:~renatofilho/indicators-client/fix-1186373
Reviewer Review Type Date Requested Status
Sergio Schvezov Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+166909@code.launchpad.net

Commit message

Avoid variable name conflicts, using the full path variable name.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Works like a charm. but like mentioned, we need to come up with some sort of _virtual_ namespacing.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'chewieui/Ubuntu/ChewieUI/ButtonMenu.qml'
2--- chewieui/Ubuntu/ChewieUI/ButtonMenu.qml 2013-01-18 15:00:11 +0000
3+++ chewieui/Ubuntu/ChewieUI/ButtonMenu.qml 2013-05-31 22:16:25 +0000
4@@ -21,6 +21,7 @@
5 import Ubuntu.Components 0.1
6
7 BasicMenu {
8+ id: _buttonMenu
9 property variant action: menu && actionGroup ? actionGroup.action(menu.action) : undefined
10
11 color: "#221e1b"
12@@ -35,8 +36,8 @@
13 color: "#1b1817"
14
15 onClicked: {
16- if (action && action.valid) {
17- action.activate()
18+ if (_buttonMenu.action && _buttonMenu.action.valid) {
19+ _buttonMenu.action.activate()
20 }
21 }
22 }
23
24=== modified file 'plugins/messagingplugin/qml/ActionButton.qml'
25--- plugins/messagingplugin/qml/ActionButton.qml 2013-01-11 15:05:30 +0000
26+++ plugins/messagingplugin/qml/ActionButton.qml 2013-05-31 22:16:25 +0000
27@@ -22,12 +22,12 @@
28 import Ubuntu.Components 0.1
29
30 Button {
31- property variant action: null
32+ property variant _action: null
33 property variant actionParameter: null
34
35 onClicked: {
36- if (action && action.valid) {
37- action.activate(actionParameter)
38+ if (_action && _action.valid) {
39+ _action.activate(actionParameter)
40 }
41 }
42 }
43
44=== modified file 'plugins/messagingplugin/qml/ActionTextField.qml'
45--- plugins/messagingplugin/qml/ActionTextField.qml 2013-01-11 15:05:30 +0000
46+++ plugins/messagingplugin/qml/ActionTextField.qml 2013-05-31 22:16:25 +0000
47@@ -22,7 +22,7 @@
48 import Ubuntu.Components 0.1
49
50 Item {
51- property alias action: __sendButton.action
52+ property alias _action: __sendButton._action
53 property alias text: __replyField.text
54 property alias buttonText: __sendButton.text
55
56
57=== modified file 'plugins/messagingplugin/qml/GroupedMessage.qml'
58--- plugins/messagingplugin/qml/GroupedMessage.qml 2013-01-11 15:05:30 +0000
59+++ plugins/messagingplugin/qml/GroupedMessage.qml 2013-05-31 22:16:25 +0000
60@@ -23,7 +23,8 @@
61 import Ubuntu.ChewieUI 0.1 as ChewieUI
62
63 ChewieUI.RemovableMenu {
64- property variant action: menu && actionGroup ? actionGroup.action(menu.action) : undefined
65+ id: _removableMenu
66+ property variant _action: menu && actionGroup ? actionGroup.action(menu.action) : undefined
67 property alias count: label.text
68
69 color: "#221e1b"
70@@ -61,7 +62,7 @@
71 color: "#e8e1d0"
72 font.weight: Font.DemiBold
73 fontSize: "medium"
74- text: action && action.valid && action.state ? action.state[0] : "0"
75+ text: _removableMenu._action && _removableMenu._action.valid && _removableMenu._action.state ? _removableMenu._action.state[0] : "0"
76 }
77 }
78
79@@ -78,15 +79,15 @@
80 MouseArea {
81 anchors.fill: parent
82 onClicked: {
83- if (action && action.valid) {
84- action.activate(true)
85+ if (_removableMenu._action && _removableMenu._action.valid) {
86+ _removableMenu._action.activate(true)
87 }
88 }
89 }
90
91 onItemRemoved: {
92- if (action && action.valid) {
93- action.activate(false)
94+ if (_removableMenu._action && _removableMenu._action.valid) {
95+ _removableMenu._action.activate(false)
96 }
97 }
98 }
99
100=== modified file 'plugins/messagingplugin/qml/HeroMessage.qml'
101--- plugins/messagingplugin/qml/HeroMessage.qml 2013-04-03 20:50:27 +0000
102+++ plugins/messagingplugin/qml/HeroMessage.qml 2013-05-31 22:16:25 +0000
103@@ -26,7 +26,7 @@
104 id: __heroMessage
105
106 property variant actionsDescription: null
107- property variant action: menu && actionGroup ? actionGroup.action(menu.action) : undefined
108+ property variant _action: menu && actionGroup ? actionGroup.action(menu.action) : undefined
109 property alias heroMessageHeader: __heroMessageHeader
110 property real collapsedHeight: heroMessageHeader.y + heroMessageHeader.bodyBottom + units.gu(2)
111 property real expandedHeight: collapsedHeight
112@@ -50,9 +50,9 @@
113 state: __heroMessage.state
114
115 onAppIconClicked: {
116- if (action && action.valid) {
117+ if (__heroMessage.action && __heroMessage.action.valid) {
118 listViewSelectItem(-1)
119- action.activate(true)
120+ __heroMessage.action.activate(true)
121 }
122 }
123 }
124@@ -108,8 +108,8 @@
125 }
126
127 onItemRemoved: {
128- if (action && action.valid) {
129- action.activate(false)
130+ if (__heroMessage._action && __heroMessage._action.valid) {
131+ __heroMessage._action.activate(false)
132 }
133 }
134 }
135
136=== modified file 'plugins/messagingplugin/qml/QuickReply.qml'
137--- plugins/messagingplugin/qml/QuickReply.qml 2013-03-08 19:17:07 +0000
138+++ plugins/messagingplugin/qml/QuickReply.qml 2013-05-31 22:16:25 +0000
139@@ -23,7 +23,9 @@
140 import Ubuntu.ChewieUI 0.1 as ChewieUI
141
142 Item {
143- property alias action: __actionTextField.action
144+ id: _quickReply
145+
146+ property alias _action: __actionTextField._action
147 property alias buttonText: __actionTextField.buttonText
148 property real expandedHeight: childrenRect.height
149 property alias messages : __messagelistRepeater.model
150@@ -110,7 +112,7 @@
151 anchors.fill: parent
152 onClicked: {
153 __actionTextField.text = modelData
154- }
155+ }
156 }
157
158 Rectangle {
159
160=== modified file 'plugins/messagingplugin/qml/SnapDecision.qml'
161--- plugins/messagingplugin/qml/SnapDecision.qml 2013-01-11 15:05:30 +0000
162+++ plugins/messagingplugin/qml/SnapDecision.qml 2013-05-31 22:16:25 +0000
163@@ -62,7 +62,7 @@
164 }
165
166 ActionButton {
167- action: menu && actionGroup && actionsDescription ? actionGroup.action(actionsDescription[0].name) : undefined
168+ _action: menu && actionGroup && actionsDescription ? actionGroup.action(actionsDescription[0].name) : undefined
169 text: actionsDescription ? actionsDescription[0].label : "Call back"
170 color: "#c94212"
171 anchors.right: parent.right
172@@ -94,7 +94,7 @@
173
174 messages: actionsDescription ? actionsDescription[1]["parameter-hint"] : ""
175 buttonText: actionsDescription ? actionsDescription[1].label : "send"
176- action: menu && actionGroup && actionsDescription ? actionGroup.action(actionsDescription[1].name) : undefined
177+ _action: menu && actionGroup && actionsDescription ? actionGroup.action(actionsDescription[1].name) : undefined
178 anchors.top: __buttons.bottom
179 anchors.topMargin: units.gu(2)
180 anchors.left: parent.left
181
182=== modified file 'plugins/messagingplugin/qml/TextMessage.qml'
183--- plugins/messagingplugin/qml/TextMessage.qml 2013-01-11 15:05:30 +0000
184+++ plugins/messagingplugin/qml/TextMessage.qml 2013-05-31 22:16:25 +0000
185@@ -26,7 +26,7 @@
186
187 footer: ActionTextField {
188 anchors.fill: parent
189- action: menu && actionGroup && actionsDescription ? actionGroup.action(actionsDescription[0].name) : undefined
190+ _action: menu && actionGroup && actionsDescription ? actionGroup.action(actionsDescription[0].name) : undefined
191 buttonText: actionsDescription ? actionsDescription[0].label : "Send"
192 }
193 }

Subscribers

People subscribed via source and target branches