Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/Login.qml
Show All 11 Lines | 9 | SessionManagementScreen { | |||
---|---|---|---|---|---|
12 | 12 | | |||
13 | property bool showUsernamePrompt: !showUserList | 13 | property bool showUsernamePrompt: !showUserList | ||
14 | 14 | | |||
15 | property string lastUserName | 15 | property string lastUserName | ||
16 | property bool loginScreenUiVisible: false | 16 | property bool loginScreenUiVisible: false | ||
17 | 17 | | |||
18 | //the y position that should be ensured visible when the on screen keyboard is visible | 18 | //the y position that should be ensured visible when the on screen keyboard is visible | ||
19 | property int visibleBoundary: mapFromItem(loginButton, 0, 0).y | 19 | property int visibleBoundary: mapFromItem(loginButton, 0, 0).y | ||
20 | onHeightChanged: visibleBoundary = mapFromItem(loginButton, 0, 0).y + loginButton.height + units.smallSpacing | 20 | function onHeightChanged() { visibleBoundary = mapFromItem(loginButton, 0, 0).y + loginButton.height + units.smallSpacing } | ||
21 | 21 | | |||
22 | property int fontSize: config.fontSize | 22 | property int fontSize: config.fontSize | ||
23 | 23 | | |||
24 | signal loginRequest(string username, string password) | 24 | signal loginRequest(string username, string password) | ||
25 | 25 | | |||
26 | onShowUsernamePromptChanged: { | 26 | function onShowUsernamePromptChanged() { | ||
27 | if (!showUsernamePrompt) { | 27 | if (!showUsernamePrompt) { | ||
28 | lastUserName = "" | 28 | lastUserName = "" | ||
29 | } | 29 | } | ||
30 | } | 30 | } | ||
31 | 31 | | |||
32 | /* | 32 | /* | ||
33 | * Login has been requested with the following username and password | 33 | * Login has been requested with the following username and password | ||
34 | * If username field is visible, it will be taken from that, otherwise from the "name" property of the currentIndex | 34 | * If username field is visible, it will be taken from that, otherwise from the "name" property of the currentIndex | ||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |