Merge lp:~nick-dedekind/unity/phablet.indicators.small-swipe into lp:unity/phablet

Proposed by Nick Dedekind
Status: Merged
Approved by: Michał Sawicz
Approved revision: no longer in the source branch.
Merged at revision: 623
Proposed branch: lp:~nick-dedekind/unity/phablet.indicators.small-swipe
Merge into: lp:unity/phablet
Diff against target: 35 lines (+15/-0)
2 files modified
Panel/Indicators.qml (+4/-0)
tests/qmltests/Panel/tst_Indicators.qml (+11/-0)
To merge this branch: bzr merge lp:~nick-dedekind/unity/phablet.indicators.small-swipe
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Michał Sawicz Approve
Review via email: mp+160321@code.launchpad.net

Commit message

Fixed issue where the indicator menus will not open if you do a small swipe on the indicator bar.

Description of the change

Fixed issue where the indicator menus will not open if you do a small swipe on the indicator bar.
This only happens if you don't swipe beyond the hint threshold.

To post a comment you must log in.
Revision history for this message
Michał Sawicz (saviq) :
review: Approve
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) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Panel/Indicators.qml'
2--- Panel/Indicators.qml 2013-04-12 08:37:35 +0000
3+++ Panel/Indicators.qml 2013-04-23 10:27:40 +0000
4@@ -250,6 +250,10 @@
5 if (indicators.state == "initial") {
6 openOverview()
7 }
8+ else {
9+ indicators.calculateCurrentItem(revealer.lateralPosition, false)
10+ menuContent.showMenu()
11+ }
12 indicators.state = "commit"
13 }
14 }
15
16=== modified file 'tests/qmltests/Panel/tst_Indicators.qml'
17--- tests/qmltests/Panel/tst_Indicators.qml 2013-04-17 13:01:10 +0000
18+++ tests/qmltests/Panel/tst_Indicators.qml 2013-04-23 10:27:40 +0000
19@@ -197,5 +197,16 @@
20 compare(indicators.partiallyOpened, false, "Indicator should show as fully opened when in between revealer closedValue & openedValue height");
21 compare(indicators.fullyOpened, true, "Indicator should not show as fully opened when at revealer openedValue height");
22 }
23+
24+ // The indicator menu content should be shown if the indicators are show through an animation before they
25+ // enter a furthur state through a progress change (eg press indicator row, drag down a less then hint
26+ // threshold and release to show
27+ function test_menu_open_on_hint_drag() {
28+ indicators.handlePress();
29+ indicators.show()
30+
31+ var menuContent = findChild(indicators, "menuContent")
32+ compare(menuContent.__shown, true, "Indicator menu content should be shown after a indicator show.");
33+ }
34 }
35 }

Subscribers

People subscribed via source and target branches