Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/lockscreen/MainBlock.qml
Show All 28 Lines | |||||
29 | 29 | | |||
30 | SessionManagementScreen { | 30 | SessionManagementScreen { | ||
31 | 31 | | |||
32 | property Item mainPasswordBox: passwordBox | 32 | property Item mainPasswordBox: passwordBox | ||
33 | property bool lockScreenUiVisible: false | 33 | property bool lockScreenUiVisible: false | ||
34 | 34 | | |||
35 | //the y position that should be ensured visible when the on screen keyboard is visible | 35 | //the y position that should be ensured visible when the on screen keyboard is visible | ||
36 | property int visibleBoundary: mapFromItem(loginButton, 0, 0).y | 36 | property int visibleBoundary: mapFromItem(loginButton, 0, 0).y | ||
37 | onHeightChanged: visibleBoundary = mapFromItem(loginButton, 0, 0).y + loginButton.height + units.smallSpacing | 37 | function onHeightChanged() { visibleBoundary = mapFromItem(loginButton, 0, 0).y + loginButton.height + units.smallSpacing } | ||
38 | /* | 38 | /* | ||
39 | * Login has been requested with the following username and password | 39 | * Login has been requested with the following username and password | ||
40 | * If username field is visible, it will be taken from that, otherwise from the "name" property of the currentIndex | 40 | * If username field is visible, it will be taken from that, otherwise from the "name" property of the currentIndex | ||
41 | */ | 41 | */ | ||
42 | signal loginRequest(string password) | 42 | signal loginRequest(string password) | ||
43 | 43 | | |||
44 | function startLogin() { | 44 | function startLogin() { | ||
45 | var password = passwordBox.text | 45 | var password = passwordBox.text | ||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |