summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-22 16:28:11 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-22 16:28:11 +0200
commit9e1f5ffade77222f5fa05d9ad1c2d098259af280 (patch)
treec93e5acfc836c2406bf7098d750b448b7904d1af /components
parent5bbf92db5b396be15fc92f88fe9d2a58805b6764 (diff)
downloadkube-9e1f5ffade77222f5fa05d9ad1c2d098259af280.tar.gz
kube-9e1f5ffade77222f5fa05d9ad1c2d098259af280.zip
You can't escape from the LoginView
Because we don't deal with it.
Diffstat (limited to 'components')
-rw-r--r--components/kube/contents/ui/LoginView.qml27
1 files changed, 21 insertions, 6 deletions
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 @@
19 19
20import QtQuick 2.4 20import QtQuick 2.4
21import QtQuick.Layouts 1.1 21import QtQuick.Layouts 1.1
22import QtQuick.Controls 1.3 as Controls
23import QtQuick.Controls 2.0 22import QtQuick.Controls 2.0
24import org.kube.framework 1.0 as Kube 23import org.kube.framework 1.0 as Kube
25 24
26FocusScope { 25FocusScope {
27 id: root 26 id: root
28 property alias accountId: login.accountId 27 property alias accountId: login.accountId
28 onActiveFocusChanged: {
29 if (activeFocus) {
30 popup.forceActiveFocus()
31 }
32 }
29 33
30 Kube.LoginAccount { 34 Kube.Popup {
31 id: login 35 id: popup
32 anchors { 36 visible: true
33 fill: parent 37 parent: ApplicationWindow.overlay
34 bottomMargin: Kube.Units.largeSpacing 38 height: app.height
39 width: app.width - app.sidebarWidth
40 x: app.sidebarWidth
41 y: 0
42 modal: true
43 closePolicy: Popup.NoAutoClose
44 Kube.LoginAccount {
45 id: login
46 anchors {
47 fill: parent
48 bottomMargin: Kube.Units.largeSpacing
49 }
35 } 50 }
36 } 51 }
37} 52}