From 9e1f5ffade77222f5fa05d9ad1c2d098259af280 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 22 Sep 2017 16:28:11 +0200 Subject: You can't escape from the LoginView Because we don't deal with it. --- components/kube/contents/ui/LoginView.qml | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'components') diff --git a/components/kube/contents/ui/LoginView.qml b/components/kube/contents/ui/LoginView.qml index 840c74de..dbbed11c 100644 --- a/components/kube/contents/ui/LoginView.qml +++ b/components/kube/contents/ui/LoginView.qml @@ -19,19 +19,34 @@ import QtQuick 2.4 import QtQuick.Layouts 1.1 -import QtQuick.Controls 1.3 as Controls import QtQuick.Controls 2.0 import org.kube.framework 1.0 as Kube FocusScope { id: root property alias accountId: login.accountId + onActiveFocusChanged: { + if (activeFocus) { + popup.forceActiveFocus() + } + } - Kube.LoginAccount { - id: login - anchors { - fill: parent - bottomMargin: Kube.Units.largeSpacing + Kube.Popup { + id: popup + visible: true + parent: ApplicationWindow.overlay + height: app.height + width: app.width - app.sidebarWidth + x: app.sidebarWidth + y: 0 + modal: true + closePolicy: Popup.NoAutoClose + Kube.LoginAccount { + id: login + anchors { + fill: parent + bottomMargin: Kube.Units.largeSpacing + } } } } -- cgit v1.2.3