Merge lp:~mhr3/unity8/scopes-send-form-factor into lp:unity8

Proposed by Michal Hruby
Status: Merged
Approved by: Michał Sawicz
Approved revision: 168
Merged at revision: 179
Proposed branch: lp:~mhr3/unity8/scopes-send-form-factor
Merge into: lp:unity8
Diff against target: 36 lines (+5/-3)
2 files modified
Dash/ScopeView.qml (+2/-1)
plugins/Unity/scope.cpp (+3/-2)
To merge this branch: bzr merge lp:~mhr3/unity8/scopes-send-form-factor
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Michał Sawicz Approve
Review via email: mp+178576@code.launchpad.net

Commit message

Set phone form factor for scope requests.

Description of the change

Set phone form factor for scope requests. (hardcoded to "phone" since there's no dynamic way to determine the form factor for now)

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
Michał Sawicz (saviq) :
review: Approve
Revision history for this message
Michał Sawicz (saviq) wrote :

Actually... After a short discussion:

* drop the Binding
* just initialise formFactor to "phone" in Scope c'tor
* re-search onFormFactorChanged

review: Needs Fixing
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)
Revision history for this message
Michał Sawicz (saviq) :
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)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
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)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Dash/ScopeView.qml'
2--- Dash/ScopeView.qml 2013-06-12 12:52:35 +0000
3+++ Dash/ScopeView.qml 2013-08-09 09:29:16 +0000
4@@ -28,7 +28,8 @@
5 signal movementStarted
6 signal positionedAtBeginning
7
8- // FIXME delay the search so that daemons have time to settle
9+ // FIXME delay the search so that daemons have time to settle, note that
10+ // removing this will break ScopeView::test_changeScope
11 onScopeChanged: timer.restart()
12
13 Timer {
14
15=== modified file 'plugins/Unity/scope.cpp'
16--- plugins/Unity/scope.cpp 2013-07-04 11:26:17 +0000
17+++ plugins/Unity/scope.cpp 2013-08-09 09:29:16 +0000
18@@ -36,8 +36,8 @@
19
20 #include <libintl.h>
21
22-Scope::Scope(QObject *parent) :
23- QObject(parent)
24+Scope::Scope(QObject *parent) : QObject(parent)
25+ , m_formFactor("phone")
26 {
27 m_categories.reset(new Categories(this));
28 }
29@@ -128,6 +128,7 @@
30 m_formFactor = form_factor;
31 if (m_unityScope) {
32 m_unityScope->form_factor = m_formFactor.toStdString();
33+ synchronizeStates(); // will trigger a re-search
34 }
35 Q_EMIT formFactorChanged();
36 }

Subscribers

People subscribed via source and target branches