Merge lp:~ken-vandine/content-hub/no_devices_section into lp:content-hub

Proposed by Ken VanDine
Status: Merged
Approved by: Ken VanDine
Approved revision: 82
Merged at revision: 90
Proposed branch: lp:~ken-vandine/content-hub/no_devices_section
Merge into: lp:content-hub
Diff against target: 68 lines (+14/-9)
1 file modified
import/Ubuntu/Content/ContentPeerPicker.qml (+14/-9)
To merge this branch: bzr merge lp:~ken-vandine/content-hub/no_devices_section
Reviewer Review Type Date Requested Status
Michael Sheldon (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+213529@code.launchpad.net

Commit message

  ContentPeerPicker: Make headers translatable and use a ResponsiveGridView
  for the devices grid to match the apps grid.

  ContentPeerPicker: hide the devices section until we have a way to populate it

Description of the change

  ContentPeerPicker: Make headers translatable and use a ResponsiveGridView
  for the devices grid to match the apps grid.

  ContentPeerPicker: hide the devices section until we have a way to populate it

To post a comment you must log in.
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Are there any related MPs required for this MP to build/function as expected? Please list.

 * No

Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes)

 * Yes

Did you perform an exploratory manual test run of your code change and any related functionality on device or emulator?

 * Yes

Did you successfully run all tests found in your component's Test Plan (https://wiki.ubuntu.com/Process/Merges/TestPlan/content-hub) on device or emulator?

 * Yes

If you changed the UI, was the change specified/approved by design?

 * The only change to the UI is hiding a section that is currently known to be
   empty. When we have a way to show populate the section we should make
   the devices section visible again.

If you changed the packaging (debian), did you subscribe a core-dev to this MP?

 * No changes

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michael Sheldon (michael-sheldon) wrote :

Did you perform an exploratory manual test run of the code change and any related functionality on device or emulator?

 * Yes

Did CI run pass? If not, please explain why.

 * Yes

Have you checked that submitter has accurately filled out the submitter checklist and has taken no shortcut?

 * Yes

review: Approve
Revision history for this message
Michael Sheldon (michael-sheldon) wrote :

Did you perform an exploratory manual test run of the code change and any related functionality on device or emulator?

 * Yes

Did CI run pass? If not, please explain why.

 * Yes

Have you checked that submitter has accurately filled out the submitter checklist and has taken no shortcut?

 * Yes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'import/Ubuntu/Content/ContentPeerPicker.qml'
--- import/Ubuntu/Content/ContentPeerPicker.qml 2014-03-20 13:04:57 +0000
+++ import/Ubuntu/Content/ContentPeerPicker.qml 2014-03-31 18:00:08 +0000
@@ -171,13 +171,13 @@
171 ListItem.Header {171 ListItem.Header {
172 id: appTitle172 id: appTitle
173 anchors.top: header.visible ? header.bottom : parent.top173 anchors.top: header.visible ? header.bottom : parent.top
174 text: "Apps"174 text: i18n.tr("Apps")
175 }175 }
176176
177 Rectangle {177 Rectangle {
178 id: apps178 id: apps
179 color: "#FFFFFF"179 color: "#FFFFFF"
180 height: (parent.height / 2.4)180 height: devices.visible ? (parent.height / 2.4) : parent.height
181 width: parent.width181 width: parent.width
182 clip: true182 clip: true
183 anchors {183 anchors {
@@ -200,22 +200,25 @@
200 model: customPeerModelLoader ? customPeerModelLoader.item.peers : peerModelLoader.item.peers200 model: customPeerModelLoader ? customPeerModelLoader.item.peers : peerModelLoader.item.peers
201 delegate: peerDelegate201 delegate: peerDelegate
202 }202 }
203
204 }203 }
205 }204 }
206205
207 ListItem.Header {206 ListItem.Header {
208 id: devTitle207 id: devTitle
208 // TODO: make this visible when we have a way to populate devices
209 visible: false
209 anchors {210 anchors {
210 left: parent.left211 left: parent.left
211 right: parent.right212 right: parent.right
212 top: apps.bottom213 top: apps.bottom
213 }214 }
214 text: "Devices"215 text: i18n.tr("Devices")
215 }216 }
216217
217 Rectangle {218 Rectangle {
218 id: devices219 id: devices
220 // TODO: make this visible when we have a way to populate devices
221 visible: false
219 color: "#FFFFFF"222 color: "#FFFFFF"
220 width: parent.width223 width: parent.width
221 radius: 0224 radius: 0
@@ -230,14 +233,16 @@
230 Flickable {233 Flickable {
231 anchors.fill: parent234 anchors.fill: parent
232235
233 GridView {236 ResponsiveGridView {
234 id: devPeers237 id: devPeers
235 header: Item { height: units.gu(2) }238 anchors.fill: parent
236 cellWidth: units.gu(13.5)239 minimumHorizontalSpacing: units.gu(0.5)
237 cellHeight: units.gu(16)240 maximumNumberOfColumns: 6
241 delegateWidth: units.gu(11)
242 delegateHeight: units.gu(9.5)
243 verticalSpacing: units.gu(2)
238 delegate: peerDelegate244 delegate: peerDelegate
239 }245 }
240
241 }246 }
242 }247 }
243248

Subscribers

People subscribed via source and target branches