From 611c3038b4b51564085625f13056784b435d0bc9 Mon Sep 17 00:00:00 2001 From: ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ Date: Thu, 19 Jan 2023 14:46:37 +0800 Subject: Separate header for reuse --- HeaderToolBar.ui.qml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 HeaderToolBar.ui.qml (limited to 'HeaderToolBar.ui.qml') 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") + } + } + } + } +} -- cgit v1.3