Merge lp://staging/~zsombi/ubuntu-ui-toolkit/60-action-value-type into lp://staging/~zsombi/ubuntu-ui-toolkit/listitem-master
Proposed by
Zsombor Egri
Status: | Merged |
---|---|
Approved by: | Tim Peeters |
Approved revision: | 1297 |
Merged at revision: | 1277 |
Proposed branch: | lp://staging/~zsombi/ubuntu-ui-toolkit/60-action-value-type |
Merge into: | lp://staging/~zsombi/ubuntu-ui-toolkit/listitem-master |
Prerequisite: | lp://staging/~zsombi/ubuntu-ui-toolkit/55-snap-options |
Diff against target: |
283 lines (+102/-13) 7 files modified
modules/Ubuntu/Components/Themes/Ambiance/ListItemPanel.qml (+1/-0) modules/Ubuntu/Components/plugin/ucaction.h (+1/-0) modules/Ubuntu/Components/plugin/uclistitem.cpp (+2/-2) modules/Ubuntu/Components/plugin/uclistitemactions.cpp (+36/-1) modules/Ubuntu/Components/plugin/uclistitemactions_p.h (+6/-0) tests/resources/listitems/ListItemTest.qml (+9/-7) tests/unit_x11/tst_components/tst_listitem.qml (+47/-3) |
To merge this branch: | bzr merge lp://staging/~zsombi/ubuntu-ui-toolkit/60-action-value-type |
Related bugs: | |
Related blueprints: |
SDK: Design a new ListItem and layouts
(Undefined)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Peeters | Approve | ||
Zsombor Egri | continuous-integration | Pending | |
Review via email: mp+235175@code.staging.launchpad.net |
Description of the change
Use the index of the ListItem when triggering the action. The action's parameter type must be integer, if none set, the panel will set it to integer.
To post a comment you must log in.
19 actionsRow. selectedAction. trigger( actionsRow. listItemIndex >= 0 ? actionsRow. listItemIndex : null); selectedAction = null;
20 actionsRow.
should this be guarded by if (parameterType == Integer) ?