Merge lp://staging/~ubuntu-sdk-team/ubuntu-ui-toolkit/listItemRightClick into lp://staging/ubuntu-ui-toolkit/staging
- listItemRightClick
- Merge into staging
Status: | Merged |
---|---|
Approved by: | Zsombor Egri |
Approved revision: | 1549 |
Merged at revision: | 1570 |
Proposed branch: | lp://staging/~ubuntu-sdk-team/ubuntu-ui-toolkit/listItemRightClick |
Merge into: | lp://staging/ubuntu-ui-toolkit/staging |
Diff against target: |
337 lines (+173/-8) 7 files modified
modules/Ubuntu/Components/1.3/ListItemPopover.qml (+70/-0) modules/Ubuntu/Components/Popups/1.3/Popover.qml (+2/-2) modules/Ubuntu/Components/plugin/uclistitem.cpp (+59/-1) modules/Ubuntu/Components/plugin/uclistitem.h (+7/-0) modules/Ubuntu/Components/plugin/uctheme.cpp (+4/-0) modules/Ubuntu/Components/plugin/uctheme.h (+2/-1) tests/unit_x11/tst_components/tst_listitem.qml (+29/-4) |
To merge this branch: | bzr merge lp://staging/~ubuntu-sdk-team/ubuntu-ui-toolkit/listItemRightClick |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zsombor Egri | Approve | ||
PS Jenkins bot | continuous-integration | Approve | |
Tim Peeters | Needs Fixing | ||
Review via email: mp+262177@code.staging.launchpad.net |
Commit message
Implement ListItemPopover on right-click
Description of the change
Andrea Bernabei (faenil) wrote : | # |
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1536
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
Cris Dywan (kalikiana) : | # |
Andrea Bernabei (faenil) : | # |
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1537
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Tim Peeters (tpeeters) wrote : | # |
When I open our gallery.sh and go to the new list items and right-click them, I am getting a bunch of warnings:
file://
file://
file://
file://
Tim Peeters (tpeeters) wrote : | # |
I get the same^ warnings with tst_listitem.qml:
tim@ubuntu:
file://
file://
file://
file://
file://
file://
file://
file://
Tim Peeters (tpeeters) wrote : | # |
I agree with Andrea that searching or the path of the qml file is not very pretty.
Also, even when using Ubuntu.Components 1.2, the ListItem will show the popover for 1.3. We don't want API or visual changes in 1.2 any more, but with this approach you will get the changes in ListItem popover that are made for 1.3 even when importing 1.2.
Perhaps we should show the popover only for 1.3?
Tim Peeters (tpeeters) wrote : | # |
A screenshot of how it looks now: https:/
Design input is needed.
Cris Dywan (kalikiana) wrote : | # |
FTR I'm going to update the design.
The searching for the QML path can't be avoided as far as I'm aware because there's no path in the component, but I will look if I can find the version that is being used.
Tim Peeters (tpeeters) wrote : | # |
> FTR I'm going to update the design.
>
> The searching for the QML path can't be avoided as far as I'm aware because
> there's no path in the component, but I will look if I can find the version
> that is being used.
If the version is not >= 1.3, the right-click should not even open the popover.
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1541
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 1542. By Cris Dywan
-
Update components.api
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1542
http://
Executed test runs:
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Tim Peeters (tpeeters) wrote : | # |
57 + MouseArea {
58 + anchors.fill: parent
59 + onReleased: {
60 + popover.hide();
61 + action.trigger();
62 + }
63 + }
This seems weird/hackish to me. Why do you need this?
Tim Peeters (tpeeters) wrote : | # |
Test Result (3 failures / -1)
components.
components.
components.
^the failures from jenkins seem related to the changes you made. Can you check them?
Tim Peeters (tpeeters) wrote : | # |
I'm getting these failures locally too, see http://
Tim Peeters (tpeeters) wrote : | # |
Should we have autopilot CPOs specifically for using the popover to trigger an action?
Tim Peeters (tpeeters) wrote : | # |
The list-item that was right-clicked to show the popover must be highlighted while the popover is open. I don't know if that was in the specifications, but we just agreed on it in the design sync meeting.
- 1543. By Cris Dywan
-
Use onClicked instead of custom MouseArea in ListItem
- 1544. By Cris Dywan
-
Highlight ListItem while context menu is open
Cris Dywan (kalikiana) wrote : | # |
> Should we have autopilot CPOs specifically for using the popover to trigger an
> action?
All icons are available via swiping. Currently I don't see any need since it would do exactly the same.
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1544
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
Click here to trigger a rebuild:
http://
Zsombor Egri (zsombi) wrote : | # |
What is the reason you registered a 1.3 specific ListItem? You wanted to guard the availability of the popup menu in 1.2? You can do that by not having the Popup present in 1.2 directory, and check where the ListItem is used based on the theme.toolkitVe
You can look after the QML file you need based on the plugin's baseUrl(). See UbuntuComponent
Zsombor Egri (zsombi) wrote : | # |
Another idea on resolving the context menu: Introduce the menu property in the ListItem (which will be done anyway), yet undocumented. Then set that property in the 1.3 Ambiance style with a Popover from the theme. In the code you look after the menu property, if it is set, you can open it. So no need for 1.3 specific subclassing anymore.
- 1545. By Cris Dywan
-
Use UbuntuComponent
sPlugin: :pluginUrl to locale ListItemPopover - 1546. By Cris Dywan
-
Update line numbers in ignoreWarning calls in listitem test
- 1547. By Cris Dywan
- 1548. By Cris Dywan
-
Check popover.parent before adjusting y in updatePosition
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1548
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Zsombor Egri (zsombi) wrote : | # |
Few comments inline.
- 1549. By Cris Dywan
-
UCTheme.version method and delete QQmlComponent
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1549
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
I left a few comments, just out of curiosity