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
1=== modified file 'import/Ubuntu/Content/ContentPeerPicker.qml'
2--- import/Ubuntu/Content/ContentPeerPicker.qml 2014-03-20 13:04:57 +0000
3+++ import/Ubuntu/Content/ContentPeerPicker.qml 2014-03-31 18:00:08 +0000
4@@ -171,13 +171,13 @@
5 ListItem.Header {
6 id: appTitle
7 anchors.top: header.visible ? header.bottom : parent.top
8- text: "Apps"
9+ text: i18n.tr("Apps")
10 }
11
12 Rectangle {
13 id: apps
14 color: "#FFFFFF"
15- height: (parent.height / 2.4)
16+ height: devices.visible ? (parent.height / 2.4) : parent.height
17 width: parent.width
18 clip: true
19 anchors {
20@@ -200,22 +200,25 @@
21 model: customPeerModelLoader ? customPeerModelLoader.item.peers : peerModelLoader.item.peers
22 delegate: peerDelegate
23 }
24-
25 }
26 }
27
28 ListItem.Header {
29 id: devTitle
30+ // TODO: make this visible when we have a way to populate devices
31+ visible: false
32 anchors {
33 left: parent.left
34 right: parent.right
35 top: apps.bottom
36 }
37- text: "Devices"
38+ text: i18n.tr("Devices")
39 }
40
41 Rectangle {
42 id: devices
43+ // TODO: make this visible when we have a way to populate devices
44+ visible: false
45 color: "#FFFFFF"
46 width: parent.width
47 radius: 0
48@@ -230,14 +233,16 @@
49 Flickable {
50 anchors.fill: parent
51
52- GridView {
53+ ResponsiveGridView {
54 id: devPeers
55- header: Item { height: units.gu(2) }
56- cellWidth: units.gu(13.5)
57- cellHeight: units.gu(16)
58+ anchors.fill: parent
59+ minimumHorizontalSpacing: units.gu(0.5)
60+ maximumNumberOfColumns: 6
61+ delegateWidth: units.gu(11)
62+ delegateHeight: units.gu(9.5)
63+ verticalSpacing: units.gu(2)
64 delegate: peerDelegate
65 }
66-
67 }
68 }
69

Subscribers

People subscribed via source and target branches