Merge lp:~phablet-team/ubuntu-system-settings/settings-listitems into lp:ubuntu-system-settings
- settings-listitems
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Ken VanDine |
Approved revision: | 1561 |
Merged at revision: | 1676 |
Proposed branch: | lp:~phablet-team/ubuntu-system-settings/settings-listitems |
Merge into: | lp:ubuntu-system-settings |
Diff against target: |
352 lines (+273/-11) 11 files modified
src/SystemSettings/CMakeLists.txt (+2/-0) src/SystemSettings/ListItems/CMakeLists.txt (+13/-0) src/SystemSettings/ListItems/Icon.qml (+33/-0) src/SystemSettings/ListItems/IconProgression.qml (+30/-0) src/SystemSettings/ListItems/SingleControl.qml (+34/-0) src/SystemSettings/ListItems/SingleValue.qml (+30/-0) src/SystemSettings/ListItems/SingleValueProgression.qml (+35/-0) src/SystemSettings/ListItems/Standard.qml (+41/-0) src/SystemSettings/ListItems/StandardProgression.qml (+29/-0) src/SystemSettings/ListItems/qmldir (+9/-0) src/SystemSettings/SettingsItemTitle.qml (+17/-11) |
To merge this branch: | bzr merge lp:~phablet-team/ubuntu-system-settings/settings-listitems |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ken VanDine | Approve | ||
system-apps-ci-bot | continuous-integration | Needs Fixing | |
PS Jenkins bot | continuous-integration | Needs Fixing | |
Review via email:
|
Commit message
new module SystemSettings.
Description of the change
- 1559. By Jonas G. Drange
-
set the color of the dividers
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
PS Jenkins bot (ps-jenkins) wrote : | # |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1559
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 1560. By Ken VanDine
-
merged trunk
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1560
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
system-apps-ci-bot (system-apps-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:1560
https:/
Executed test runs:
FAILURE: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
- 1561. By Ken VanDine
-
merged trunk
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
system-apps-ci-bot (system-apps-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:1561
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Alberto Mardegan (mardy) wrote : | # |
Please let me know what I should do with https:/
I think there will be some conflict with this branch.
Preview Diff
1 | === modified file 'src/SystemSettings/CMakeLists.txt' |
2 | --- src/SystemSettings/CMakeLists.txt 2014-10-31 08:45:10 +0000 |
3 | +++ src/SystemSettings/CMakeLists.txt 2016-06-29 14:34:55 +0000 |
4 | @@ -6,3 +6,5 @@ |
5 | set(PLUG_DIR ${PLUGIN_QML_DIR}/SystemSettings) |
6 | install(FILES qmldir DESTINATION ${PLUG_DIR}) |
7 | install(FILES ${QML_SOURCES} DESTINATION ${PLUG_DIR}) |
8 | + |
9 | +add_subdirectory(ListItems) |
10 | |
11 | === added directory 'src/SystemSettings/ListItems' |
12 | === added file 'src/SystemSettings/ListItems/CMakeLists.txt' |
13 | --- src/SystemSettings/ListItems/CMakeLists.txt 1970-01-01 00:00:00 +0000 |
14 | +++ src/SystemSettings/ListItems/CMakeLists.txt 2016-06-29 14:34:55 +0000 |
15 | @@ -0,0 +1,13 @@ |
16 | +set(QML_SOURCES |
17 | + Icon.qml |
18 | + IconProgression.qml |
19 | + SingleControl.qml |
20 | + SingleValue.qml |
21 | + SingleValueProgression.qml |
22 | + Standard.qml |
23 | + StandardProgression.qml |
24 | +) |
25 | + |
26 | +set(PLUG_DIR ${PLUGIN_QML_DIR}/SystemSettings/ListItems) |
27 | +install(FILES qmldir DESTINATION ${PLUG_DIR}) |
28 | +install(FILES ${QML_SOURCES} DESTINATION ${PLUG_DIR}) |
29 | |
30 | === added file 'src/SystemSettings/ListItems/Icon.qml' |
31 | --- src/SystemSettings/ListItems/Icon.qml 1970-01-01 00:00:00 +0000 |
32 | +++ src/SystemSettings/ListItems/Icon.qml 2016-06-29 14:34:55 +0000 |
33 | @@ -0,0 +1,33 @@ |
34 | +/* |
35 | + * This file is part of system-settings |
36 | + * |
37 | + * Copyright (C) 2015 Canonical Ltd. |
38 | + * |
39 | + * This program is free software: you can redistribute it and/or modify it |
40 | + * under the terms of the GNU General Public License version 3, as published |
41 | + * by the Free Software Foundation. |
42 | + * |
43 | + * This program is distributed in the hope that it will be useful, but |
44 | + * WITHOUT ANY WARRANTY; without even the implied warranties of |
45 | + * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
46 | + * PURPOSE. See the GNU General Public License for more details. |
47 | + * |
48 | + * You should have received a copy of the GNU General Public License along |
49 | + * with this program. If not, see <http://www.gnu.org/licenses/>. |
50 | + */ |
51 | + |
52 | +import QtQuick 2.4 |
53 | +import Ubuntu.Components 1.3 |
54 | + |
55 | +Standard { |
56 | + id: base |
57 | + property alias iconName: icon.name |
58 | + property alias iconSource: icon.source |
59 | + |
60 | + Icon { |
61 | + id: icon |
62 | + width: height |
63 | + height: units.gu(2.5) |
64 | + SlotsLayout.position: SlotsLayout.First |
65 | + } |
66 | +} |
67 | |
68 | === added file 'src/SystemSettings/ListItems/IconProgression.qml' |
69 | --- src/SystemSettings/ListItems/IconProgression.qml 1970-01-01 00:00:00 +0000 |
70 | +++ src/SystemSettings/ListItems/IconProgression.qml 2016-06-29 14:34:55 +0000 |
71 | @@ -0,0 +1,30 @@ |
72 | +/* |
73 | + * This file is part of system-settings |
74 | + * |
75 | + * Copyright (C) 2015 Canonical Ltd. |
76 | + * |
77 | + * This program is free software: you can redistribute it and/or modify it |
78 | + * under the terms of the GNU General Public License version 3, as published |
79 | + * by the Free Software Foundation. |
80 | + * |
81 | + * This program is distributed in the hope that it will be useful, but |
82 | + * WITHOUT ANY WARRANTY; without even the implied warranties of |
83 | + * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
84 | + * PURPOSE. See the GNU General Public License for more details. |
85 | + * |
86 | + * You should have received a copy of the GNU General Public License along |
87 | + * with this program. If not, see <http://www.gnu.org/licenses/>. |
88 | + */ |
89 | + |
90 | +import QtQuick 2.4 |
91 | +import "." as SettingsListItems |
92 | +import Ubuntu.Components 1.3 |
93 | + |
94 | +SettingsListItems.Icon { |
95 | + id: base |
96 | + property alias progressionVisible: progression.visible |
97 | + |
98 | + ProgressionSlot { |
99 | + id: progression |
100 | + } |
101 | +} |
102 | |
103 | === added file 'src/SystemSettings/ListItems/SingleControl.qml' |
104 | --- src/SystemSettings/ListItems/SingleControl.qml 1970-01-01 00:00:00 +0000 |
105 | +++ src/SystemSettings/ListItems/SingleControl.qml 2016-06-29 14:34:55 +0000 |
106 | @@ -0,0 +1,34 @@ |
107 | +/* |
108 | + * This file is part of system-settings |
109 | + * |
110 | + * Copyright (C) 2015 Canonical Ltd. |
111 | + * |
112 | + * This program is free software: you can redistribute it and/or modify it |
113 | + * under the terms of the GNU General Public License version 3, as published |
114 | + * by the Free Software Foundation. |
115 | + * |
116 | + * This program is distributed in the hope that it will be useful, but |
117 | + * WITHOUT ANY WARRANTY; without even the implied warranties of |
118 | + * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
119 | + * PURPOSE. See the GNU General Public License for more details. |
120 | + * |
121 | + * You should have received a copy of the GNU General Public License along |
122 | + * with this program. If not, see <http://www.gnu.org/licenses/>. |
123 | + */ |
124 | + |
125 | +import QtQuick 2.4 |
126 | +import Ubuntu.Components 1.3 |
127 | + |
128 | +ListItem { |
129 | + id: root |
130 | + default property alias slots: layoutItem.children |
131 | + property alias layout: layoutItem |
132 | + property bool showDivider: true |
133 | + |
134 | + height: layoutItem.height + (divider.visible ? divider.height : 0) |
135 | + divider.visible: showDivider |
136 | + |
137 | + SlotsLayout { |
138 | + id: layoutItem |
139 | + } |
140 | +} |
141 | |
142 | === added file 'src/SystemSettings/ListItems/SingleValue.qml' |
143 | --- src/SystemSettings/ListItems/SingleValue.qml 1970-01-01 00:00:00 +0000 |
144 | +++ src/SystemSettings/ListItems/SingleValue.qml 2016-06-29 14:34:55 +0000 |
145 | @@ -0,0 +1,30 @@ |
146 | +/* |
147 | + * This file is part of system-settings |
148 | + * |
149 | + * Copyright (C) 2015 Canonical Ltd. |
150 | + * |
151 | + * This program is free software: you can redistribute it and/or modify it |
152 | + * under the terms of the GNU General Public License version 3, as published |
153 | + * by the Free Software Foundation. |
154 | + * |
155 | + * This program is distributed in the hope that it will be useful, but |
156 | + * WITHOUT ANY WARRANTY; without even the implied warranties of |
157 | + * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
158 | + * PURPOSE. See the GNU General Public License for more details. |
159 | + * |
160 | + * You should have received a copy of the GNU General Public License along |
161 | + * with this program. If not, see <http://www.gnu.org/licenses/>. |
162 | + */ |
163 | + |
164 | +import QtQuick 2.4 |
165 | +import Ubuntu.Components 1.3 |
166 | + |
167 | +Standard { |
168 | + id: base |
169 | + property alias value: value.text |
170 | + |
171 | + Label { |
172 | + id: value |
173 | + horizontalAlignment: Text.AlignRight |
174 | + } |
175 | +} |
176 | |
177 | === added file 'src/SystemSettings/ListItems/SingleValueProgression.qml' |
178 | --- src/SystemSettings/ListItems/SingleValueProgression.qml 1970-01-01 00:00:00 +0000 |
179 | +++ src/SystemSettings/ListItems/SingleValueProgression.qml 2016-06-29 14:34:55 +0000 |
180 | @@ -0,0 +1,35 @@ |
181 | +/* |
182 | + * This file is part of system-settings |
183 | + * |
184 | + * Copyright (C) 2015 Canonical Ltd. |
185 | + * |
186 | + * This program is free software: you can redistribute it and/or modify it |
187 | + * under the terms of the GNU General Public License version 3, as published |
188 | + * by the Free Software Foundation. |
189 | + * |
190 | + * This program is distributed in the hope that it will be useful, but |
191 | + * WITHOUT ANY WARRANTY; without even the implied warranties of |
192 | + * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
193 | + * PURPOSE. See the GNU General Public License for more details. |
194 | + * |
195 | + * You should have received a copy of the GNU General Public License along |
196 | + * with this program. If not, see <http://www.gnu.org/licenses/>. |
197 | + */ |
198 | + |
199 | +import QtQuick 2.4 |
200 | +import Ubuntu.Components 1.3 |
201 | + |
202 | +Standard { |
203 | + id: base |
204 | + property alias value: value.text |
205 | + property alias progressionVisible: progression.visible |
206 | + |
207 | + Label { |
208 | + id: value |
209 | + horizontalAlignment: Text.AlignRight |
210 | + } |
211 | + |
212 | + ProgressionSlot { |
213 | + id: progression |
214 | + } |
215 | +} |
216 | |
217 | === added file 'src/SystemSettings/ListItems/Standard.qml' |
218 | --- src/SystemSettings/ListItems/Standard.qml 1970-01-01 00:00:00 +0000 |
219 | +++ src/SystemSettings/ListItems/Standard.qml 2016-06-29 14:34:55 +0000 |
220 | @@ -0,0 +1,41 @@ |
221 | +/* |
222 | + * This file is part of system-settings |
223 | + * |
224 | + * Copyright (C) 2015 Canonical Ltd. |
225 | + * |
226 | + * This program is free software: you can redistribute it and/or modify it |
227 | + * under the terms of the GNU General Public License version 3, as published |
228 | + * by the Free Software Foundation. |
229 | + * |
230 | + * This program is distributed in the hope that it will be useful, but |
231 | + * WITHOUT ANY WARRANTY; without even the implied warranties of |
232 | + * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
233 | + * PURPOSE. See the GNU General Public License for more details. |
234 | + * |
235 | + * You should have received a copy of the GNU General Public License along |
236 | + * with this program. If not, see <http://www.gnu.org/licenses/>. |
237 | + */ |
238 | + |
239 | +import Ubuntu.Components 1.3 |
240 | + |
241 | +ListItem { |
242 | + id: root |
243 | + default property alias slots: layoutItem.children |
244 | + property alias layout: layoutItem |
245 | + property string text |
246 | + property bool showDivider: true |
247 | + property bool highlightWhenPressed: true |
248 | + |
249 | + height: layoutItem.height + (divider.visible ? divider.height : 0) |
250 | + divider.visible: showDivider |
251 | + divider.colorFrom: "#EEEEEE" |
252 | + divider.colorTo: "#EEEEEE" |
253 | + divider.height: units.dp(1) |
254 | + highlightColor: highlightWhenPressed ? undefined : "transparent" |
255 | + |
256 | + ListItemLayout { |
257 | + id: layoutItem |
258 | + title.text: root.text |
259 | + title.opacity: enabled ? 1 : 0.5 |
260 | + } |
261 | +} |
262 | |
263 | === added file 'src/SystemSettings/ListItems/StandardProgression.qml' |
264 | --- src/SystemSettings/ListItems/StandardProgression.qml 1970-01-01 00:00:00 +0000 |
265 | +++ src/SystemSettings/ListItems/StandardProgression.qml 2016-06-29 14:34:55 +0000 |
266 | @@ -0,0 +1,29 @@ |
267 | +/* |
268 | + * This file is part of system-settings |
269 | + * |
270 | + * Copyright (C) 2015 Canonical Ltd. |
271 | + * |
272 | + * This program is free software: you can redistribute it and/or modify it |
273 | + * under the terms of the GNU General Public License version 3, as published |
274 | + * by the Free Software Foundation. |
275 | + * |
276 | + * This program is distributed in the hope that it will be useful, but |
277 | + * WITHOUT ANY WARRANTY; without even the implied warranties of |
278 | + * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
279 | + * PURPOSE. See the GNU General Public License for more details. |
280 | + * |
281 | + * You should have received a copy of the GNU General Public License along |
282 | + * with this program. If not, see <http://www.gnu.org/licenses/>. |
283 | + */ |
284 | + |
285 | +import QtQuick 2.4 |
286 | +import Ubuntu.Components 1.3 |
287 | + |
288 | +Standard { |
289 | + id: base |
290 | + property alias progressionVisible: progression.visible |
291 | + |
292 | + ProgressionSlot { |
293 | + id: progression |
294 | + } |
295 | +} |
296 | |
297 | === added file 'src/SystemSettings/ListItems/qmldir' |
298 | --- src/SystemSettings/ListItems/qmldir 1970-01-01 00:00:00 +0000 |
299 | +++ src/SystemSettings/ListItems/qmldir 2016-06-29 14:34:55 +0000 |
300 | @@ -0,0 +1,9 @@ |
301 | +module SystemSettings.ListItems |
302 | + |
303 | +Icon 1.0 Icon.qml |
304 | +IconProgression 1.0 IconProgression.qml |
305 | +SingleControl 1.0 SingleControl.qml |
306 | +SingleValue 1.0 SingleValue.qml |
307 | +SingleValueProgression 1.0 SingleValueProgression.qml |
308 | +Standard 1.0 Standard.qml |
309 | +StandardProgression 1.0 StandardProgression.qml |
310 | |
311 | === modified file 'src/SystemSettings/SettingsItemTitle.qml' |
312 | --- src/SystemSettings/SettingsItemTitle.qml 2015-08-10 13:31:45 +0000 |
313 | +++ src/SystemSettings/SettingsItemTitle.qml 2016-06-29 14:34:55 +0000 |
314 | @@ -18,21 +18,27 @@ |
315 | |
316 | import QtQuick 2.4 |
317 | import Ubuntu.Components 1.3 |
318 | -import Ubuntu.Components.ListItems 1.3 as ListItem |
319 | - |
320 | -ListItem.Standard { |
321 | - id: itemEmpty |
322 | - property string text |
323 | + |
324 | +Item { |
325 | + property alias text: label.text |
326 | + anchors { |
327 | + left: parent.left |
328 | + right: parent.right |
329 | + } |
330 | + height: units.gu(6) |
331 | + |
332 | Label { |
333 | + id: label |
334 | anchors { |
335 | + top: parent.top |
336 | + topMargin: units.gu(3) |
337 | + right: parent.right |
338 | + rightMargin: units.gu(2) |
339 | + bottom: parent.bottom |
340 | left: parent.left |
341 | leftMargin: units.gu(2) |
342 | - right: parent.right |
343 | - rightMargin: units.gu(2) |
344 | - top: parent.top |
345 | - topMargin: units.gu(3) |
346 | } |
347 | - text: itemEmpty.text |
348 | + fontSize: "small" |
349 | + opacity: 0.75 |
350 | } |
351 | - highlightWhenPressed: false |
352 | } |
FAILED: Continuous integration, rev:1558 jenkins. qa.ubuntu. com/job/ ubuntu- system- settings- ci/2514/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 5332 jenkins. qa.ubuntu. com/job/ ubuntu- system- settings- vivid-amd64- ci/288 jenkins. qa.ubuntu. com/job/ ubuntu- system- settings- vivid-i386- ci/697 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- vivid-touch/ 4228 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 5352 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 5352/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 25415
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/ubuntu- system- settings- ci/2514/ rebuild
http://