ActionSelectionPopover docs use non-default delegate, fails to auto-close

Bug #1336945 reported by Nicholas Skaggs
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

A popover should close automatically after selecting an option. This works as expected using the default delegate.

However, the docs http://developer.ubuntu.com/api/qml/sdk-14.10/Ubuntu.Components.Popups.ActionSelectionPopover/ demonstrate using the listitem delegate which does not close automatically.

The docs should be updated to reflect using the default delegate and/or mention using a non-default delegate requires you to close the popover.

Revision history for this message
Tim Peeters (tpeeters) wrote :

the default delegate calls popover.hide() in onTriggered, the new delegate that you provide does not

Changed in ubuntu-ui-toolkit:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Tim Peeters (tpeeters) wrote :

adding this to the popover code will make it work as expected:
onTriggered: testActionsPopover.hide()

Changed in ubuntu-ui-toolkit:
status: Confirmed → Incomplete
Changed in ubuntu-ui-toolkit:
status: Incomplete → Confirmed
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
importance: High → Medium
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Uipdated to note the docs should reflect using the default delegate instead, where proper auto-close behavoir exists.

description: updated
summary: - ActionSelectionPopover doesn't close automatically
+ ActionSelectionPopover docs use non-default delegate, fails to auto-
+ close
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-ui-toolkit
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.