Merge lp:~nick-dedekind/unity8/move-indicator-qml into lp:unity8

Proposed by Nick Dedekind
Status: Merged
Approved by: Michał Sawicz
Approved revision: 980
Merged at revision: 1002
Proposed branch: lp:~nick-dedekind/unity8/move-indicator-qml
Merge into: lp:unity8
Diff against target: 272 lines (+14/-99)
13 files modified
plugins/Unity/Indicators/CMakeLists.txt (+1/-4)
plugins/Unity/Indicators/qmldir (+0/-4)
qml/Panel/Indicators/DefaultIndicatorPage.qml (+2/-2)
qml/Panel/Indicators/DefaultIndicatorWidget.qml (+1/-2)
qml/Panel/Indicators/IndicatorBase.qml (+2/-3)
qml/Panel/Indicators/IndicatorDelegate.qml (+1/-2)
tests/mocks/Unity/Indicators/IndicatorBase.qml (+0/-38)
tests/mocks/Unity/Indicators/MenuItemFactory.qml (+0/-38)
tests/mocks/Unity/Indicators/qmldir (+0/-2)
tests/qmltests/Panel/Indicators/tst_DefaultIndicatorPage.qml (+1/-0)
tests/qmltests/Panel/Indicators/tst_DefaultIndicatorWidget.qml (+1/-0)
tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml (+3/-2)
tests/qmltests/Panel/Indicators/tst_MessageMenuItemFactory.qml (+2/-2)
To merge this branch: bzr merge lp:~nick-dedekind/unity8/move-indicator-qml
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Michał Sawicz Approve
Review via email: mp+223947@code.launchpad.net

Commit message

Moved [Message]MenuItemFacotory from Unity.Indicators plugin to qml folder.

Description of the change

Moved [Message]MenuItemFacotory from Unity.Indicators plugin to qml folder.

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

 * Did you perform an exploratory manual test run of your code change and any related functionality?
Yes

 * Did you make sure that your branch does not contain spurious tags?
Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

 * If you changed the UI, has there been a design review?
N/A

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
979. By Nick Dedekind

moved qml to root plugin dir. moved IndicatoBase to Panel/Indicators

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Michał Sawicz (saviq) wrote :

Unexpected test failures:
qmltestrunner.DefaultIndicatorPage::test_empty
qmltestrunner.DefaultIndicatorPage::test_reloadData
qmltestrunner.DefaultIndicatorPage::test_traverse_rootMenuType
qmltestrunner.tst_DefaultIndicatorWidget::compile
testDash.xml.<init>

review: Needs Fixing
980. By Nick Dedekind

fixed tests

Revision history for this message
Michał Sawicz (saviq) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Yes. Everything still good.

 * Did CI run pass? If not, please explain why.
Not yet, expecting testShell failure.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
981. By Nick Dedekind

merged with trunk

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/Unity/Indicators/CMakeLists.txt'
2--- plugins/Unity/Indicators/CMakeLists.txt 2014-05-02 22:57:00 +0000
3+++ plugins/Unity/Indicators/CMakeLists.txt 2014-07-03 13:48:00 +0000
4@@ -51,7 +51,4 @@
5
6 qt5_use_modules(IndicatorsQml Core Qml Quick)
7
8-add_unity8_plugin(Unity.Indicators 0.1 Unity/Indicators
9- SEARCH_PATH qml
10- TARGETS IndicatorsQml
11-)
12+add_unity8_plugin(Unity.Indicators 0.1 Unity/Indicators TARGETS IndicatorsQml)
13
14=== renamed file 'plugins/Unity/Indicators/qml/CachedUnityMenuModel.qml' => 'plugins/Unity/Indicators/CachedUnityMenuModel.qml'
15=== removed directory 'plugins/Unity/Indicators/qml'
16=== renamed file 'plugins/Unity/Indicators/qml/qmldir' => 'plugins/Unity/Indicators/qmldir'
17--- plugins/Unity/Indicators/qml/qmldir 2014-05-02 22:57:00 +0000
18+++ plugins/Unity/Indicators/qmldir 2014-07-03 13:48:00 +0000
19@@ -4,7 +4,3 @@
20
21 CachedUnityMenuModel 0.1 CachedUnityMenuModel.qml
22 IndicatorBase 0.1 IndicatorBase.qml
23-MenuItemFactory 0.1 MenuItemFactory.qml
24-MessageMenuItemFactory 0.1 MessageMenuItemFactory.qml
25-
26-internal RemoveBackground RemoveBackground.qml
27
28=== modified file 'qml/Panel/Indicators/DefaultIndicatorPage.qml'
29--- qml/Panel/Indicators/DefaultIndicatorPage.qml 2013-12-13 14:59:04 +0000
30+++ qml/Panel/Indicators/DefaultIndicatorPage.qml 2014-07-03 13:48:00 +0000
31@@ -22,7 +22,7 @@
32 import Ubuntu.Components 0.1 as Components
33 import Unity.Indicators 0.1 as Indicators
34
35-Indicators.IndicatorBase {
36+IndicatorBase {
37 id: main
38
39 //const
40@@ -174,7 +174,7 @@
41 }
42 }
43
44- Indicators.MenuItemFactory {
45+ MenuItemFactory {
46 id: factory
47 menuModel: mainMenu.model ? mainMenu.model : null
48 }
49
50=== modified file 'qml/Panel/Indicators/DefaultIndicatorWidget.qml'
51--- qml/Panel/Indicators/DefaultIndicatorWidget.qml 2014-07-01 13:56:53 +0000
52+++ qml/Panel/Indicators/DefaultIndicatorWidget.qml 2014-07-03 13:48:00 +0000
53@@ -20,9 +20,8 @@
54 import QtQuick 2.0
55 import Ubuntu.Components 0.1
56 import Ubuntu.Settings.Components 0.1
57-import Unity.Indicators 0.1 as Indicators
58
59-Indicators.IndicatorBase {
60+IndicatorBase {
61 id: indicatorWidget
62
63 property int iconSize: units.gu(2)
64
65=== renamed file 'plugins/Unity/Indicators/qml/IndicatorBase.qml' => 'qml/Panel/Indicators/IndicatorBase.qml'
66--- plugins/Unity/Indicators/qml/IndicatorBase.qml 2013-11-24 02:23:56 +0000
67+++ qml/Panel/Indicators/IndicatorBase.qml 2014-07-03 13:48:00 +0000
68@@ -18,8 +18,7 @@
69 */
70
71 import QtQuick 2.0
72-import QMenuModel 0.1 as QMenuModel
73-import Unity.Indicators 0.1 as Indicators
74+import Unity.Indicators 0.1
75
76 Item {
77 id: indicatorItem
78@@ -43,7 +42,7 @@
79 menuObjectPath: indicatorItem.deviceMenuObjectPath
80 }
81
82- property var rootActionState: Indicators.RootActionState {
83+ property RootActionState rootActionState: RootActionState {
84 menu: menuModel
85 onUpdated: indicatorItem.rootActionStateChanged()
86 }
87
88=== modified file 'qml/Panel/Indicators/IndicatorDelegate.qml'
89--- qml/Panel/Indicators/IndicatorDelegate.qml 2014-01-14 15:35:57 +0000
90+++ qml/Panel/Indicators/IndicatorDelegate.qml 2014-07-03 13:48:00 +0000
91@@ -18,9 +18,8 @@
92 */
93
94 import QtQuick 2.0
95-import Unity.Indicators 0.1 as Indicators
96
97-Indicators.IndicatorBase {
98+IndicatorBase {
99 enabled: false
100
101 onRootActionStateChanged: {
102
103=== renamed file 'plugins/Unity/Indicators/qml/MenuItemFactory.qml' => 'qml/Panel/Indicators/MenuItemFactory.qml'
104=== renamed file 'plugins/Unity/Indicators/qml/MessageMenuItemFactory.qml' => 'qml/Panel/Indicators/MessageMenuItemFactory.qml'
105=== renamed file 'plugins/Unity/Indicators/qml/RemoveBackground.qml' => 'qml/Panel/Indicators/RemoveBackground.qml'
106=== removed file 'tests/mocks/Unity/Indicators/IndicatorBase.qml'
107--- tests/mocks/Unity/Indicators/IndicatorBase.qml 2013-12-13 11:18:03 +0000
108+++ tests/mocks/Unity/Indicators/IndicatorBase.qml 1970-01-01 00:00:00 +0000
109@@ -1,38 +0,0 @@
110-/*
111- * Copyright 2013 Canonical Ltd.
112- *
113- * This program is free software; you can redistribute it and/or modify
114- * it under the terms of the GNU Lesser General Public License as published by
115- * the Free Software Foundation; version 3.
116- *
117- * This program is distributed in the hope that it will be useful,
118- * but WITHOUT ANY WARRANTY; without even the implied warranty of
119- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
120- * GNU Lesser General Public License for more details.
121- *
122- * You should have received a copy of the GNU Lesser General Public License
123- * along with this program. If not, see <http://www.gnu.org/licenses/>.
124- *
125- * Authors:
126- * Nick Dedekind <nick.dedekind@canonical.com>
127- */
128-
129-import QtQuick 2.0
130-import QMenuModel 0.1
131-
132-Item {
133- id: indicatorBase
134-
135- //const
136- property string busName
137- property string actionsObjectPath
138- property string menuObjectPath
139- property string rootMenuType: "com.canonical.indicator.root"
140- property string deviceMenuObjectPath: menuObjectPath
141-
142- property var menuModel: UnityMenuModel {}
143-
144- property RootActionState rootActionState: RootActionState {
145- onUpdated: indicatorBase.rootActionStateChanged()
146- }
147-}
148
149=== removed file 'tests/mocks/Unity/Indicators/MenuItemFactory.qml'
150--- tests/mocks/Unity/Indicators/MenuItemFactory.qml 2013-12-13 13:12:40 +0000
151+++ tests/mocks/Unity/Indicators/MenuItemFactory.qml 1970-01-01 00:00:00 +0000
152@@ -1,38 +0,0 @@
153-/*
154- * Copyright 2013 Canonical Ltd.
155- *
156- * This program is free software; you can redistribute it and/or modify
157- * it under the terms of the GNU Lesser General Public License as published by
158- * the Free Software Foundation; version 3.
159- *
160- * This program is distributed in the hope that it will be useful,
161- * but WITHOUT ANY WARRANTY; without even the implied warranty of
162- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
163- * GNU Lesser General Public License for more details.
164- *
165- * You should have received a copy of the GNU Lesser General Public License
166- * along with this program. If not, see <http://www.gnu.org/licenses/>.
167- *
168- * Authors:
169- * Nick Dedekind <nick.dedekind@canonical.com>
170- */
171-
172-import QtQuick 2.0
173-import Ubuntu.Components.ListItems 0.1 as ListItem
174-
175-Item {
176- id: menuFactory
177-
178- property var menuModel: null
179-
180- Component {
181- id: standardMenu;
182- ListItem.Standard {
183- objectName: "standardMenu"
184- }
185- }
186-
187- function load(modelData) {
188- return standardMenu;
189- }
190-}
191
192=== modified file 'tests/mocks/Unity/Indicators/qmldir'
193--- tests/mocks/Unity/Indicators/qmldir 2014-05-02 22:57:21 +0000
194+++ tests/mocks/Unity/Indicators/qmldir 2014-07-03 13:48:00 +0000
195@@ -3,8 +3,6 @@
196 typeinfo Indicators.qmltypes
197
198 CachedUnityMenuModel 0.1 CachedUnityMenuModel.qml
199-IndicatorBase 0.1 IndicatorBase.qml
200 IndicatorsModel 0.1 IndicatorsModel.qml
201 FakeMenuPage 0.1 FakeMenuPage.qml
202-MenuItemFactory 0.1 MenuItemFactory.qml
203 RootActionState 0.1 RootActionState.qml
204
205=== modified file 'tests/qmltests/Panel/Indicators/tst_DefaultIndicatorPage.qml'
206--- tests/qmltests/Panel/Indicators/tst_DefaultIndicatorPage.qml 2014-01-15 12:34:00 +0000
207+++ tests/qmltests/Panel/Indicators/tst_DefaultIndicatorPage.qml 2014-07-03 13:48:00 +0000
208@@ -31,6 +31,7 @@
209 anchors.fill: parent
210 contentActive: true
211
212+ menuModel: UnityMenuModel {}
213 busName: "test"
214 actionsObjectPath: "test"
215 menuObjectPath: "test"
216
217=== modified file 'tests/qmltests/Panel/Indicators/tst_DefaultIndicatorWidget.qml'
218--- tests/qmltests/Panel/Indicators/tst_DefaultIndicatorWidget.qml 2014-07-01 12:15:35 +0000
219+++ tests/qmltests/Panel/Indicators/tst_DefaultIndicatorWidget.qml 2014-07-03 13:48:00 +0000
220@@ -33,6 +33,7 @@
221 top: parent.top
222 }
223
224+ menuModel: UnityMenuModel {}
225 busName: "test"
226 actionsObjectPath: "test"
227 deviceMenuObjectPath: "test"
228
229=== modified file 'tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml'
230--- tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml 2014-05-01 14:25:18 +0000
231+++ tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml 2014-07-03 13:48:00 +0000
232@@ -18,15 +18,16 @@
233 import QtTest 1.0
234 import Unity.Test 0.1 as UT
235 import QMenuModel 0.1
236-import Unity.Indicators 0.1 as Indicators
237 import Utils 0.1 as Utils
238+import "../../../../qml/Panel/Indicators"
239+
240
241 Item {
242 id: testView
243 width: units.gu(40)
244 height: units.gu(70)
245
246- Indicators.MenuItemFactory {
247+ MenuItemFactory {
248 id: factory
249 menuModel: UnityMenuModel {}
250 }
251
252=== modified file 'tests/qmltests/Panel/Indicators/tst_MessageMenuItemFactory.qml'
253--- tests/qmltests/Panel/Indicators/tst_MessageMenuItemFactory.qml 2014-04-14 17:26:06 +0000
254+++ tests/qmltests/Panel/Indicators/tst_MessageMenuItemFactory.qml 2014-07-03 13:48:00 +0000
255@@ -18,15 +18,15 @@
256 import QtTest 1.0
257 import Unity.Test 0.1 as UT
258 import QMenuModel 0.1
259-import Unity.Indicators 0.1 as Indicators
260 import Utils 0.1 as Utils
261+import "../../../../qml/Panel/Indicators"
262
263 Item {
264 id: testView
265 width: units.gu(40)
266 height: units.gu(70)
267
268- Indicators.MessageMenuItemFactory {
269+ MessageMenuItemFactory {
270 id: factory
271 menuModel: UnityMenuModel {}
272 menuIndex: 0

Subscribers

People subscribed via source and target branches