Advertisement
vladislav_larionov

Untitled

Mar 6th, 2024
1,304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.96 KB | None | 0 0
  1. import Sailfish.Silica 1.0
  2. import Aurora.Controls 1.0
  3.  
  4. Page {
  5.     Button {
  6.         onClicked: popup.open()
  7.  
  8.         anchors.centerIn: parent
  9.         text: "popup"
  10.  
  11.         PopupToolMenu {
  12.             id: popup
  13.  
  14.             toolbar.buttons: [
  15.                 PopupToolMenuButton {
  16.                     onClicked: console.log("Refresh clicked")
  17.                     icon.source: "image://theme/icon-m-refresh"
  18.                 },
  19.                 PopupToolMenuButton {
  20.                     onClicked: console.log("Mute clicked")
  21.                     icon.source: "image://theme/icon-m-mic-mute"
  22.                 },
  23.                 PopupToolMenuButton {
  24.                     onClicked: console.log("Like clicked")
  25.                     icon.source: "image://theme/icon-m-like"
  26.                 }
  27.             ]
  28.  
  29.             PopupMenuItem { text: "Item 1" }
  30.             PopupMenuItem { text: "Item 2" }
  31.             PopupMenuItem { text: "Item 3" }
  32.         }
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement