diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-13 16:00:52 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-13 16:00:52 +0800 |
commit | c8ebc9f7f5643900e7b3e502ee7982adb9cbd56d (patch) | |
tree | 76f4662445bd3d818acb6c5ecda4243f8894f8a4 /HeaderToolBar.qml | |
parent | 875a21e5790a034847db50cd2ca51970f739afd9 (diff) |
Interface for customising header actions
Diffstat (limited to 'HeaderToolBar.qml')
-rw-r--r-- | HeaderToolBar.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/HeaderToolBar.qml b/HeaderToolBar.qml index 174668e..cd8189c 100644 --- a/HeaderToolBar.qml +++ b/HeaderToolBar.qml @@ -3,6 +3,11 @@ import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 ToolBar { + property alias optionsMenu: optionsMenu + property alias optionProfile: profile + property alias optionSettings: settings + property alias optionHelp: help + property alias optionSign: sign property bool doesntEmbed: Qt.platform.os == "android" || Qt.platform.os == "linux" || Qt.platform.os == "osx" @@ -26,15 +31,19 @@ ToolBar { id: optionsMenu y: parent.height Action { + id: profile text: qsTr("Edit Profile") } Action { + id: settings text: qsTr("Account Settings") } Action { + id: help text: qsTr("Help") } Action { + id: sign text: qsTr("Sign Out") } delegate: MenuItem { |