feat: add menu component

This commit is contained in:
talksik
2025-04-13 13:11:10 -07:00
parent a76422920f
commit eb59ff6430
3 changed files with 60 additions and 0 deletions
+18
View File
@@ -124,5 +124,23 @@ AppWindow {
AppWarning {
Layout.fillWidth: true
}
AppMenu {
id: menu
Action { text: qsTr("Tool Bar"); checkable: true }
Action { text: qsTr("Side Bar"); checkable: true; checked: true }
Action { text: qsTr("Status Bar"); checkable: true; checked: true }
MenuSeparator {}
Action { text: "Hello" }
// NOTE: MenuItem is not recommended as it isn't consistent with the menu theming. Please use Action until a fix is made.
}
AppSecondaryButton {
onClicked: menu.open()
text: "Open menu"
}
}
}