From 0f8c8e398bbb82cbcea8eb1b2b8424f16750b870 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 21:54:48 +0800 Subject: Interface for setting header tool button --- Header.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Header.qml b/Header.qml index 90f1f0b..8be57c5 100644 --- a/Header.qml +++ b/Header.qml @@ -3,6 +3,7 @@ import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 ToolBar { + property alias toolButton: toolButton property alias optionsMenu: optionsMenu property alias optionProfile: profile property alias optionSettings: settings @@ -27,6 +28,7 @@ ToolBar { anchors.fill: parent layoutDirection: Qt.RightToLeft ToolButton { + id: toolButton icon.source: "https://eduport.webestica.com/assets/images/avatar/01.jpg" icon.color: "transparent" onClicked: optionsMenu.open() -- cgit v1.2.3