Merge lp:~laney/ubuntu-system-settings/wifi-scrolling into lp:ubuntu-system-settings

Proposed by Iain Lane
Status: Merged
Approved by: Ken VanDine
Approved revision: 462
Merged at revision: 461
Proposed branch: lp:~laney/ubuntu-system-settings/wifi-scrolling
Merge into: lp:ubuntu-system-settings
Diff against target: 127 lines (+12/-70)
4 files modified
plugins/background/ChangeImage.qml (+0/-62)
plugins/background/MainPage.qml (+6/-3)
plugins/background/background.pro (+2/-4)
plugins/wifi/PageComponent.qml (+4/-1)
To merge this branch: bzr merge lp:~laney/ubuntu-system-settings/wifi-scrolling
Reviewer Review Type Date Requested Status
Ken VanDine Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+191223@code.launchpad.net

Commit message

[wifi] Properly set the list of networks up for scrolling

Description of the change

[wifi] Properly set the list of networks up for scrolling

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
Ken VanDine (ken-vandine) wrote :

Looks good

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed file 'plugins/background/ChangeImage.qml'
2--- plugins/background/ChangeImage.qml 2013-10-10 14:55:40 +0000
3+++ plugins/background/ChangeImage.qml 1970-01-01 00:00:00 +0000
4@@ -1,62 +0,0 @@
5-/*
6- * Copyright (C) 2013 Canonical Ltd
7- *
8- * This program is free software: you can redistribute it and/or modify
9- * it under the terms of the GNU General Public License version 3 as
10- * published by the Free Software Foundation.
11- *
12- * This program is distributed in the hope that it will be useful,
13- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15- * GNU General Public License for more details.
16- *
17- * You should have received a copy of the GNU General Public License
18- * along with this program. If not, see <http://www.gnu.org/licenses/>.
19- *
20- * Authors:
21- * Iain Lane <iain.lane@canonical.com>
22- *
23- */
24-
25-import QtQuick 2.0
26-import Ubuntu.Components 0.1
27-import Ubuntu.Components.ListItems 0.1
28-import SystemSettings 1.0
29-
30-ItemPage {
31-
32- id: rootPage
33-
34- ListModel {
35- id: galleriesModel
36-
37- ListElement {
38- name: "Ubuntu Art"
39- }
40-
41- ListElement {
42- name: "Camera Photos"
43- }
44-
45- ListElement {
46- name: "An Album"
47- }
48-
49- ListElement {
50- name: "Another Album"
51- }
52-
53- }
54-
55- ListView {
56- anchors.fill: parent
57- model: galleriesModel
58-
59- delegate: Standard {
60- text: name
61- icon: Qt.resolvedUrl("darkeningclockwork.jpg")
62- progression: true
63- }
64- }
65-
66-}
67
68=== modified file 'plugins/background/MainPage.qml'
69--- plugins/background/MainPage.qml 2013-10-10 21:50:44 +0000
70+++ plugins/background/MainPage.qml 2013-10-15 15:19:17 +0000
71@@ -33,7 +33,10 @@
72 title: i18n.tr("Background")
73
74 /* TODO: For now hardcoded paths, later we'll use GSettings */
75- property string defaultBackground: mainPage.width >= units.gu(60) ? "/usr/share/unity8/graphics/tablet_background.jpg" : "/usr/share/unity8/graphics/phone_background.jpg"
76+ property string defaultBackground:
77+ mainPage.width >= units.gu(60) ?
78+ "/usr/share/unity8/graphics/tablet_background.jpg" :
79+ "/usr/share/unity8/graphics/phone_background.jpg"
80
81 UbuntuBackgroundPanel {
82 id: backgroundPanel
83@@ -59,8 +62,8 @@
84 }
85 }
86
87-
88- /* TODO: We hide the welcome screen parts for v1 - there's a lot of elements to hide */
89+ /* TODO: We hide the welcome screen parts for v1 -
90+ there's a lot of elements to hide */
91
92 Label {
93 id: welcomeLabel
94
95=== modified file 'plugins/background/background.pro'
96--- plugins/background/background.pro 2013-10-08 10:47:44 +0000
97+++ plugins/background/background.pro 2013-10-15 15:19:17 +0000
98@@ -5,11 +5,9 @@
99 TARGET = background
100
101 QML_SOURCES = \
102- ChangeImage.qml \
103 MainPage.qml \
104- SwappableImage.qml \
105- UbuntuSwappableImage.qml \
106- OverlayImage.qml
107+ OverlayImage.qml \
108+ SwappableImage.qml
109
110 OTHER_FILES += \
111 $${QML_SOURCES}
112
113=== modified file 'plugins/wifi/PageComponent.qml'
114--- plugins/wifi/PageComponent.qml 2013-09-19 09:02:18 +0000
115+++ plugins/wifi/PageComponent.qml 2013-10-15 15:19:17 +0000
116@@ -73,7 +73,10 @@
117 cacheBuffer: 10000
118
119 // Only allow flicking if the content doesn't fit on the page
120- interactive: contentHeight > height
121+ contentHeight: contentItem.childrenRect.height
122+ boundsBehavior: (contentHeight > wifibase.height) ?
123+ Flickable.DragAndOvershootBounds :
124+ Flickable.StopAtBounds
125
126 currentIndex: -1
127 delegate: Item {

Subscribers

People subscribed via source and target branches