diff --git a/src/ReservationsPage.qml b/src/ReservationsPage.qml index 0226768..cd8d045 100644 --- a/src/ReservationsPage.qml +++ b/src/ReservationsPage.qml @@ -1,23 +1,22 @@ pragma ComponentBehavior: Bound -import QtQuick import QtQuick.Controls +import QtQuick.Layouts Page { title: qsTr("Reservations") - Button { - action: logoutAction - } + header: ToolBar { + RowLayout { + anchors.fill: parent - Action { - id: logoutAction + ToolButton { + icon.name: "system-log-out" + text: qsTr("&Log out") - icon.name: "system-log-out" - shortcut: "Ctrl+L" - text: qsTr("&Log out") - - onTriggered: function () { - Database.close(); + onClicked: function () { + Database.close(); + } + } } } }