File size: 1,364 Bytes
a4cf109 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
import QtQuick 2.0
import QuickKeyboard 1.0
import "modes"
// import QtGraphicalEffects 1.0
Item {
id: main
width: 1404; height: 1872
Rectangle {
color: "black"
height: 100
// border { left: 9; top: 9; right: 9; bottom: 9 }
anchors {
left: parent.left
right: parent.right
top: parent.top
}
TextEdit {
id: textInput
font.pixelSize: 40
color: "white"
anchors { fill: parent; verticalCenter: parent.verticalCenter; }
clip: true
}
}
Keyboard {
id: keyboard
anchors { left: parent.left; right: parent.right; bottom: parent.bottom }
height: 626
Component.onCompleted: keyboard.dispatcher.setFocusObject(textInput)
Rectangle {
anchors.fill: parent
color: "black"
// border { left: 1; top: 12; right: 1; bottom: 1 }
}
mode: standard
Standard {
id: standard
anchors.fill: parent
anchors.topMargin: 93
onSymbolsModeSwitched: keyboard.mode = symbols
}
Symbols {
id: symbols
anchors.fill: parent
anchors.topMargin: 93
onStandardModeSwitched: keyboard.mode = standard
onSymbolsModeSwitched: keyboard.mode = symbols2
}
Symbols2 {
id: symbols2
anchors.fill: parent
anchors.topMargin: 93
onStandardModeSwitched: keyboard.mode = standard
onSymbolsModeSwitched: keyboard.mode = symbols
}
}
Item {
id: keyboardOverlay
anchors.fill: keyboard
}
}
|