Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/lockscreen/LockScreenUi.qml
Show First 20 Lines • Show All 193 Lines • ▼ Show 20 Line(s) | 193 | anchors { | |||
---|---|---|---|---|---|
194 | left: parent.left | 194 | left: parent.left | ||
195 | right: parent.right | 195 | right: parent.right | ||
196 | } | 196 | } | ||
197 | function showHide() { | 197 | function showHide() { | ||
198 | state = state == "hidden" ? "visible" : "hidden"; | 198 | state = state == "hidden" ? "visible" : "hidden"; | ||
199 | } | 199 | } | ||
200 | Component.onCompleted: inputPanel.source = "../components/VirtualKeyboard.qml" | 200 | Component.onCompleted: inputPanel.source = "../components/VirtualKeyboard.qml" | ||
201 | 201 | | |||
202 | onKeyboardActiveChanged: { | ||||
203 | if (keyboardActive) { | ||||
204 | state = "visible"; | ||||
205 | } else { | ||||
206 | state = "hidden"; | ||||
207 | } | ||||
208 | } | ||||
209 | | ||||
202 | states: [ | 210 | states: [ | ||
203 | State { | 211 | State { | ||
204 | name: "visible" | 212 | name: "visible" | ||
205 | PropertyChanges { | 213 | PropertyChanges { | ||
206 | target: mainStack | 214 | target: mainStack | ||
207 | y: Math.min(0, lockScreenRoot.height - inputPanel.height - mainBlock.visibleBoundary) | 215 | y: Math.min(0, lockScreenRoot.height - inputPanel.height - mainBlock.visibleBoundary) | ||
208 | } | 216 | } | ||
209 | PropertyChanges { | 217 | PropertyChanges { | ||
▲ Show 20 Lines • Show All 176 Lines • Show Last 20 Lines |