From 73956945976e4e83366ae12af3d4d9d2b7fafc99 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: Fri, 20 Jan 2023 10:23:53 +0800 Subject: Header has some logics in it --- HeaderToolBar.qml | 32 ++++++++++++++++++++++++++++++++ HeaderToolBar.ui.qml | 32 -------------------------------- 2 files changed, 32 insertions(+), 32 deletions(-) create mode 100644 HeaderToolBar.qml delete mode 100644 HeaderToolBar.ui.qml diff --git a/HeaderToolBar.qml b/HeaderToolBar.qml new file mode 100644 index 0000000..098f404 --- /dev/null +++ b/HeaderToolBar.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") + } + } + } + } +} diff --git a/HeaderToolBar.ui.qml b/HeaderToolBar.ui.qml deleted file mode 100644 index 098f404..0000000 --- a/HeaderToolBar.ui.qml +++ /dev/null @@ -1,32 +0,0 @@ -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.2.3