Disable virtual keyboard
Closes #6. Also some preparations for proper virtual keyboard support.
This commit is contained in:
parent
fb649ce9cd
commit
a5dd7d2d63
3 changed files with 21 additions and 1 deletions
13
Main.qml
13
Main.qml
|
|
@ -9,6 +9,7 @@ Rectangle
|
||||||
id: root
|
id: root
|
||||||
color: colors.background
|
color: colors.background
|
||||||
property variant geometry: screenModel.geometry(screenModel.primary)
|
property variant geometry: screenModel.geometry(screenModel.primary)
|
||||||
|
//property bool virtualkeyboard: bool(config.virtualkeyboard)
|
||||||
|
|
||||||
state: "stateUsers"
|
state: "stateUsers"
|
||||||
states:
|
states:
|
||||||
|
|
@ -200,12 +201,24 @@ Rectangle
|
||||||
id: pageUsers
|
id: pageUsers
|
||||||
width: areaMain.width
|
width: areaMain.width
|
||||||
height: areaMain.height
|
height: areaMain.height
|
||||||
|
y: inputPanel.visible && inputPanel.y != areaMain.height + areaBottom.height ? -150 : 0
|
||||||
|
|
||||||
Behavior on x { NumberAnimation { duration: 150 } }
|
Behavior on x { NumberAnimation { duration: 150 } }
|
||||||
|
Behavior on y { NumberAnimation { duration: 150 } }
|
||||||
|
|
||||||
onLockNav: areaTop.enabled = false
|
onLockNav: areaTop.enabled = false
|
||||||
onUnlockNav: areaTop.enabled = true
|
onUnlockNav: areaTop.enabled = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loader {
|
||||||
|
id: inputPanel
|
||||||
|
source: "slice/VirtualKeyboard.qml"
|
||||||
|
width: areaMain.width
|
||||||
|
y: areaMain.height - 350 - areaBottom.height
|
||||||
|
Behavior on y { NumberAnimation { duration: 150 } }
|
||||||
|
//visible: virtualkeyboard
|
||||||
|
visible: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Item
|
Item
|
||||||
|
|
|
||||||
7
slice/VirtualKeyboard.qml
Normal file
7
slice/VirtualKeyboard.qml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
import QtQuick 2.7
|
||||||
|
import QtQuick.VirtualKeyboard 2.1
|
||||||
|
|
||||||
|
InputPanel {
|
||||||
|
id: inputPanel
|
||||||
|
width: parent.width
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue