summaryrefslogtreecommitdiff
path: root/HeaderToolBar.ui.qml
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-01-19 14:46:37 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-01-19 14:46:37 +0800
commit611c3038b4b51564085625f13056784b435d0bc9 (patch)
tree04329fccc9d1e61e95b50d2672710b4ececa33b7 /HeaderToolBar.ui.qml
parent836e0e02fddf150d26c29e7f44a1214dc6f69755 (diff)
Separate header for reuse
Diffstat (limited to 'HeaderToolBar.ui.qml')
-rw-r--r--HeaderToolBar.ui.qml32
1 files changed, 32 insertions, 0 deletions
diff --git a/HeaderToolBar.ui.qml b/HeaderToolBar.ui.qml
new file mode 100644
index 0000000..098f404
--- /dev/null
+++ b/HeaderToolBar.ui.qml
@@ -0,0 +1,32 @@
+import QtQuick 2.15
+import QtQuick.Controls 2.15
+import QtQuick.Layouts 1.15
+
+ToolBar {
+ RowLayout {
+ anchors.fill: parent
+ layoutDirection: Qt.RightToLeft
+ ToolButton {
+ onClicked: optionsMenu.open()
+ Menu {
+ id: optionsMenu
+ y: parent.height
+ Action {
+ text: qsTr("Edit Profile")
+ }
+ Action {
+ text: qsTr("Account Settings")
+ }
+ Action {
+ text: qsTr("Help")
+ }
+ Action {
+ text: qsTr("Sign Out")
+ }
+ Action {
+ text: qsTr("Dark Mode")
+ }
+ }
+ }
+ }
+}