feat: add menu component
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user