Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/Login.qml
1 | import "components" | 1 | import "components" | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | import QtQuick 2.0 | 3 | import QtQuick 2.0 | ||
4 | import QtQuick.Layouts 1.2 | 4 | import QtQuick.Layouts 1.2 | ||
5 | 5 | | |||
6 | import org.kde.plasma.core 2.0 as PlasmaCore | 6 | import org.kde.plasma.core 2.0 as PlasmaCore | ||
7 | import org.kde.plasma.components 2.0 as PlasmaComponents | 7 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
8 | 8 | | |||
9 | SessionManagementScreen { | 9 | SessionManagementScreen { | ||
10 | 10 | | |||
11 | property bool showUsernamePrompt: !showUserList | 11 | property bool showUsernamePrompt: !showUserList | ||
12 | 12 | | |||
13 | property string lastUserName | 13 | property string lastUserName | ||
14 | 14 | | |||
15 | //the y position that should be ensured visible when the on screen keyboard is visible | ||||
mart: together with D4893, this property may be moved in SessionManagementScreen | |||||
16 | property int visibleBoundary: mapFromItem(loginButton, 0, 0).y | ||||
17 | onHeightChanged: visibleBoundary = mapFromItem(loginButton, 0, 0).y + loginButton.height + units.smallSpacing | ||||
18 | | ||||
15 | signal loginRequest(string username, string password) | 19 | signal loginRequest(string username, string password) | ||
16 | 20 | | |||
17 | onShowUsernamePromptChanged: { | 21 | onShowUsernamePromptChanged: { | ||
18 | if (!showUsernamePrompt) { | 22 | if (!showUsernamePrompt) { | ||
19 | lastUserName = "" | 23 | lastUserName = "" | ||
20 | } | 24 | } | ||
21 | } | 25 | } | ||
22 | 26 | | |||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |
together with D4893, this property may be moved in SessionManagementScreen