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
|
||||
color: colors.background
|
||||
property variant geometry: screenModel.geometry(screenModel.primary)
|
||||
//property bool virtualkeyboard: bool(config.virtualkeyboard)
|
||||
|
||||
state: "stateUsers"
|
||||
states:
|
||||
|
|
@ -200,12 +201,24 @@ Rectangle
|
|||
id: pageUsers
|
||||
width: areaMain.width
|
||||
height: areaMain.height
|
||||
y: inputPanel.visible && inputPanel.y != areaMain.height + areaBottom.height ? -150 : 0
|
||||
|
||||
Behavior on x { NumberAnimation { duration: 150 } }
|
||||
Behavior on y { NumberAnimation { duration: 150 } }
|
||||
|
||||
onLockNav: areaTop.enabled = false
|
||||
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
|
||||
|
|
|
|||
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
|
||||
}
|
||||
|
|
@ -7,4 +7,4 @@ color_bg=#222222
|
|||
color_main=#dddddd
|
||||
color_dimmed=#888888
|
||||
color_contrast=#1f1f1f
|
||||
manual=false
|
||||
manual=false
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue