Merge lp://staging/~ubuntu-sdk-team/ubuntu-ui-toolkit/shortcuts into lp://staging/ubuntu-ui-toolkit/staging

Proposed by Cris Dywan
Status: Merged
Approved by: Zsombor Egri
Approved revision: 1542
Merged at revision: 1552
Proposed branch: lp://staging/~ubuntu-sdk-team/ubuntu-ui-toolkit/shortcuts
Merge into: lp://staging/ubuntu-ui-toolkit/staging
Diff against target: 280 lines (+176/-3)
6 files modified
components.api (+2/-1)
examples/ubuntu-ui-toolkit-gallery/Buttons.qml (+8/-2)
modules/Ubuntu/Components/plugin/plugin.cpp (+1/-0)
modules/Ubuntu/Components/plugin/ucaction.cpp (+66/-0)
modules/Ubuntu/Components/plugin/ucaction.h (+7/-0)
tests/unit_x11/tst_components/tst_shortcuts.qml (+92/-0)
To merge this branch: bzr merge lp://staging/~ubuntu-sdk-team/ubuntu-ui-toolkit/shortcuts
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Zsombor Egri Approve
Review via email: mp+262413@code.staging.launchpad.net

Commit message

Implement Action.shortcut property

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

Fix doc comment for UCAction::shortcut

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Zsombor Egri (zsombi) wrote :

Got some comments inline, check 'em.

review: Needs Fixing
1539. By Cris Dywan

More explicit type check and multi modifier test case

Revision history for this message
Cris Dywan (kalikiana) wrote :

> if object is expected to be a QQuickItem,
> you should cast to it and that has a window()
> that you can use to get the window context...?

No. The action itself is in fact a QObject. We're walking up the parents to find a window.

> Shouldn't we also check whether the action is enabled?

No need, trigger() has a check already.

> What about testing also Alt+Ctrl, Shift+Ctrl and Alt+Shift+Ctrl?
> Or should we just assume that Qt shortcut system works with those?

Basically yeah, I don't think we want to duplicate their tests since we don't add any functionality. But I added another one with Atl+Shift+Ctrl just to be sure we'll know if anything obvious breaks in a Qt upgrade.

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

One more thing we forgot!

review: Needs Fixing
Revision history for this message
Zsombor Egri (zsombi) wrote :

To summarise what we talked on Mumble:
- actions to be grouped in ActionContext
- Action activation to be bound to ActionContext.active
- text input action context activation to be bound with activeFocus
- Page active to drive ActionContext.active

review: Needs Fixing
1540. By Cris Dywan

New shortcut property needs to go on revision 3

1541. By Cris Dywan

Register UCAction revision 1 to 1.3 and shortcut to 1

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)
1542. By Cris Dywan

Update components.api

Revision history for this message
Zsombor Egri (zsombi) wrote :

All good now, let's get it merged.

review: Approve
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
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches