Merge lp:~saviq/unity8/dont-preview-in-clickscope into lp:unity8

Proposed by Michał Sawicz
Status: Merged
Approved by: Michał Sawicz
Approved revision: 1042
Merged at revision: 1041
Proposed branch: lp:~saviq/unity8/dont-preview-in-clickscope
Merge into: lp:unity8
Diff against target: 50 lines (+5/-5)
2 files modified
qml/Dash/GenericScopeView.qml (+1/-1)
tests/qmltests/Dash/tst_GenericScopeView.qml (+4/-4)
To merge this branch: bzr merge lp:~saviq/unity8/dont-preview-in-clickscope
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Albert Astals Cid (community) Approve
Alejandro J. Cura (community) Approve
Review via email: mp+226638@code.launchpad.net

Commit message

Activate all results in click scope by default.

Description of the change

 * 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)
Revision history for this message
Alejandro J. Cura (alecu) wrote :

It looks better this way.

review: Approve
1042. By Michał Sawicz

Don't use special clickscope in tst_GenericScopeView.qml by default.

Revision history for this message
Albert Astals Cid (aacid) wrote :

* Did you perform an exploratory manual test run of the code change and any related functionality?
Ok, makes sense

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

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Dash/GenericScopeView.qml'
2--- qml/Dash/GenericScopeView.qml 2014-07-09 19:44:02 +0000
3+++ qml/Dash/GenericScopeView.qml 2014-07-14 14:15:35 +0000
4@@ -193,7 +193,7 @@
5 Connections {
6 target: rendererLoader.item
7 onClicked: {
8- if (scopeView.scope.id === "scopes" || (scopeView.scope.id == "clickscope" && (categoryId == "local" || categoryId == "store"))) {
9+ if (scopeView.scope.id === "scopes" || scopeView.scope.id == "clickscope") {
10 // TODO Technically it is possible that calling activate() will make the scope emit
11 // previewRequested so that we show a preview but there's no scope that does that yet
12 // so it's not implemented
13
14=== modified file 'tests/qmltests/Dash/tst_GenericScopeView.qml'
15--- tests/qmltests/Dash/tst_GenericScopeView.qml 2014-07-09 19:44:02 +0000
16+++ tests/qmltests/Dash/tst_GenericScopeView.qml 2014-07-14 14:15:35 +0000
17@@ -56,7 +56,7 @@
18 property Item previewListView: findChild(genericScopeView, "previewListView")
19
20 function init() {
21- genericScopeView.scope = scopes.getScope(2)
22+ genericScopeView.scope = scopes.getScope(1)
23 shell.width = units.gu(120)
24 genericScopeView.categoryView.positionAtBeginning();
25 tryCompare(genericScopeView.categoryView, "contentY", 0)
26@@ -76,13 +76,13 @@
27
28 function test_showDash() {
29 testCase.previewListView.open = true;
30- scopes.getScope(2).showDash();
31+ scopes.getScope(1).showDash();
32 tryCompare(testCase.previewListView, "open", false);
33 }
34
35 function test_hideDash() {
36 testCase.previewListView.open = true;
37- scopes.getScope(2).hideDash();
38+ scopes.getScope(1).hideDash();
39 tryCompare(testCase.previewListView, "open", false);
40 }
41
42@@ -99,8 +99,8 @@
43
44 function test_changeScope() {
45 genericScopeView.scope.searchQuery = "test"
46+ genericScopeView.scope = scopes.getScope(2)
47 genericScopeView.scope = scopes.getScope(1)
48- genericScopeView.scope = scopes.getScope(2)
49 tryCompare(genericScopeView.scope, "searchQuery", "test")
50 }
51

Subscribers

People subscribed via source and target branches