import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.Components.ListItems 0.1 import Ubuntu.Components.Popups 0.1 MainView { width: units.gu(50) height: units.gu(75) useDeprecatedToolbar: false Page { title: "Header Test" Button { text: "Toggle Header" anchors.centerIn: parent onClicked: useDeprecatedToolbar = !useDeprecatedToolbar } tools: ToolbarItems { ToolbarButton { id: popButton action: Action { text: "Enabled" iconName: "add" onTriggered: PopupUtils.open(popComponent, popButton) } } } Component { id: popComponent ActionSelectionPopover { delegate: Standard { text: action.text } actions: ActionList { Action { text: i18n.tr("One") } Action { text: i18n.tr("Two") } Action { text: i18n.tr("Three") } } } } } }