Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Sailfish.Silica 1.0
- import Aurora.Controls 1.0
- Page {
- Button {
- onClicked: popup.open()
- anchors.centerIn: parent
- text: "popup"
- PopupToolMenu {
- id: popup
- toolbar.buttons: [
- PopupToolMenuButton {
- onClicked: console.log("Refresh clicked")
- icon.source: "image://theme/icon-m-refresh"
- },
- PopupToolMenuButton {
- onClicked: console.log("Mute clicked")
- icon.source: "image://theme/icon-m-mic-mute"
- },
- PopupToolMenuButton {
- onClicked: console.log("Like clicked")
- icon.source: "image://theme/icon-m-like"
- }
- ]
- PopupMenuItem { text: "Item 1" }
- PopupMenuItem { text: "Item 2" }
- PopupMenuItem { text: "Item 3" }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement