diff options
-rw-r--r-- | components/kube/contents/ui/LoginView.qml | 27 |
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 | ||
20 | import QtQuick 2.4 | 20 | import QtQuick 2.4 |
21 | import QtQuick.Layouts 1.1 | 21 | import QtQuick.Layouts 1.1 |
22 | import QtQuick.Controls 1.3 as Controls | ||
23 | import QtQuick.Controls 2.0 | 22 | import QtQuick.Controls 2.0 |
24 | import org.kube.framework 1.0 as Kube | 23 | import org.kube.framework 1.0 as Kube |
25 | 24 | ||
26 | FocusScope { | 25 | FocusScope { |
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 | } |