2 * Copyright (C) 2016 The Qt Company Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 import QtQuick.Window 2.0
19 import QtQuick.Layouts 1.1
26 anchors.margins: root.height / 10
28 Layout.fillWidth: true
29 Layout.fillHeight: true
31 model: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0']
34 Layout.preferredWidth: 2
35 Layout.fillWidth: true
36 Layout.fillHeight: true
41 Layout.fillWidth: true
42 Layout.fillHeight: true
44 Layout.preferredWidth: 1
45 Layout.fillWidth: true
49 model: ['?', '#', '%', '&', '*', '-', '+', '(', ')']
52 Layout.preferredWidth: 2
53 Layout.fillWidth: true
54 Layout.fillHeight: true
58 Layout.preferredWidth: 1
59 Layout.fillWidth: true
63 Layout.fillWidth: true
64 Layout.fillHeight: true
67 image: './images/Keyboard_Shift.svg'
69 Layout.preferredWidth: 2
70 Layout.fillWidth: true
71 Layout.fillHeight: true
74 model: ['!', '"', '<', '>', '\'', ':', ';', '/']
77 Layout.preferredWidth: 2
78 Layout.fillWidth: true
79 Layout.fillHeight: true
80 capital: shift.checked
84 image: './images/Keyboard_Back.svg'
85 Layout.preferredWidth: 2
86 Layout.fillWidth: true
87 Layout.fillHeight: true
89 if (!clearSelctedText()) {
90 var input = keyboard.target
91 if (input.cursorPosition > 0)
92 keyboard.target.remove(input.cursorPosition - 1, input.cursorPosition)
98 Layout.fillWidth: true
99 Layout.fillHeight: true
102 Layout.preferredWidth: 2
103 Layout.fillWidth: true
104 Layout.fillHeight: true
105 onClicked: root.toggleMode()
109 Layout.preferredWidth: 2
110 Layout.fillWidth: true
111 Layout.fillHeight: true
115 image: './images/Keyboard_Space.svg'
116 Layout.preferredWidth: 12
117 Layout.fillWidth: true
118 Layout.fillHeight: true
122 Layout.preferredWidth: 2
123 Layout.fillWidth: true
124 Layout.fillHeight: true
125 onClicked: root.toggleMode()
128 image: './images/Keyboard_Arrow.svg'
129 Layout.preferredWidth: 2
130 Layout.fillWidth: true
131 Layout.fillHeight: true