From c8ebc9f7f5643900e7b3e502ee7982adb9cbd56d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 13 Feb 2023 16:00:52 +0800 Subject: Interface for customising header actions --- HeaderToolBar.qml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'HeaderToolBar.qml') 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 { -- cgit v1.2.3