2014-07-02 21:07:34 |
Nicholas Skaggs |
bug |
|
|
added bug |
2014-07-03 14:20:28 |
Tim Peeters |
ubuntu-ui-toolkit: status |
New |
Confirmed |
|
2014-07-03 14:20:30 |
Tim Peeters |
ubuntu-ui-toolkit: importance |
Undecided |
High |
|
2014-07-03 14:23:42 |
Tim Peeters |
ubuntu-ui-toolkit: status |
Confirmed |
Incomplete |
|
2014-07-03 14:41:13 |
Nicholas Skaggs |
ubuntu-ui-toolkit: status |
Incomplete |
Confirmed |
|
2014-07-03 14:41:15 |
Tim Peeters |
ubuntu-ui-toolkit: importance |
High |
Medium |
|
2014-07-03 14:42:37 |
Nicholas Skaggs |
description |
A popover should close automatically after selecting an option. This is not working currently. See this example and notice the popover stays on the screen even after you select an option.
-----------
import QtQuick 2.0
import Ubuntu.Components 0.1
import Ubuntu.Components.Popups 0.1
import Ubuntu.Components.ListItems 0.1 as ListItems
MainView {
width: units.gu(48)
height: units.gu(60)
Button {
objectName: "open_popover"
text: "Open Popover"
onClicked: testActionsPopover.show();
}
Label {
id: "label"
objectName: "clicked_label"
anchors.centerIn: parent
text: "Action not selected."
}
ActionSelectionPopover {
objectName: "test_actions_popover"
id: testActionsPopover
delegate: ListItems.Standard {
text: action.text
objectName: action.objectName
}
actions: ActionList {
Action {
objectName: "action_one"
text: "Action one"
onTriggered: label.text = "Action one selected."
}
Action {
objectName: "action_two"
text: "Action two"
onTriggered: label.text = "Action two selected."
}
}
}
} |
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. |
|
2014-07-03 14:43:54 |
Nicholas Skaggs |
summary |
ActionSelectionPopover doesn't close automatically |
ActionSelectionPopover docs use non-default delegate, fails to auto-close |
|
2014-11-24 13:28:58 |
Zoltan Balogh |
ubuntu-ui-toolkit (Ubuntu): importance |
Undecided |
Medium |
|
2014-11-24 13:28:58 |
Zoltan Balogh |
ubuntu-ui-toolkit (Ubuntu): status |
New |
Confirmed |
|
2014-11-24 14:15:44 |
Zoltan Balogh |
bug task deleted |
ubuntu-ui-toolkit |
|
|