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