From d7414654730d3df96620a8bac8c47cf3cea42ce8 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 19 Jun 2015 07:22:00 +0200 Subject: [PATCH] Make it possible to go back from any page by having a back button on the toolbar --- app/qml/main.qml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/app/qml/main.qml b/app/qml/main.qml index c6e0e47c4..c64ee25d5 100644 --- a/app/qml/main.qml +++ b/app/qml/main.qml @@ -30,6 +30,17 @@ ApplicationWindow width: 400 height: 500 + toolBar: RowLayout { + Button { + text: "<" + onClicked: stack.pop() + } + Label { + Layout.fillWidth: true + text: "KDE Connect" + font.pointSize: 20 + } + } StackView { id: stack anchors { @@ -85,10 +96,6 @@ ApplicationWindow ColumnLayout { id: deviceView property QtObject currentDevice - Button { - text: "<" - onClicked: stack.pop() - } Loader { Layout.fillHeight: true Layout.fillWidth: true