4
import Ubuntu.Components 0.1
9
automaticOrientation: true
23
anchors.horizontalCenter: parent.horizontalCenter
26
anchors.margins: units.gu(1)
31
anchors.horizontalCenter: parent.horizontalCenter
32
font.pixelSize: units.gu(2)
37
anchors.horizontalCenter: parent.horizontalCenter;
44
onClicked: Qt.inputMethod.show()
52
onClicked: Qt.inputMethod.hide()
57
anchors.horizontalCenter: parent.horizontalCenter;
59
text: qsTr("note: show/hide requires focus on a text input")
60
font.pixelSize: units.gu(1)
65
anchors.horizontalCenter: parent.horizontalCenter
71
height: firstInputButton.height;
73
anchors.leftMargin: units.gu(1)
80
color: "black"; selectionColor: "red"
82
// Qt.ImhPreferNumbers
83
inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhUrlCharactersOnly | Qt.ImhNoPredictiveText
84
font.pixelSize: units.gu(3)
94
onClicked: input.focus = !input.focus
99
anchors.horizontalCenter: parent.horizontalCenter;
105
height: secondInputButton.height
114
font.pixelSize: units.gu(3)
119
id: secondInputButton
121
text: "Focus/Unfocus"
123
onClicked: secondInput.focus = !secondInput.focus
128
anchors.horizontalCenter: parent.horizontalCenter;
133
font.pixelSize: units.gu(1)
134
text: Qt.inputMethod.keyboardRectangle + " "
138
id: clickBehindOSKDetectedIndicator
145
id: clickBehindOSKDetectedIndicatorText
146
anchors.centerIn: parent
148
font.pixelSize: units.gu(2)
156
target: clickBehindOSKDetectedIndicator
160
target: clickBehindOSKDetectedIndicatorText
167
target: clickBehindOSKDetectedIndicator
171
target: clickBehindOSKDetectedIndicatorText
183
anchors.horizontalCenter: parent.horizontalCenter;
185
font.pixelSize: units.gu(2)
186
text: "keyboard reports visible: " + Qt.inputMethod.visible
192
id: fakeBrowserUrlBar
193
width: keyboardRect.width
196
anchors.bottom: keyboardRect.top
199
visible: Qt.inputMethod.visible
200
anchors.centerIn: parent
201
font.pixelSize: units.gu(1)
202
text: "browser url bar"
209
width: Qt.inputMethod.keyboardRectangle.width
210
height: Qt.inputMethod.keyboardRectangle.height
212
anchors.bottom: parent.bottom
216
visible: Qt.inputMethod.visible
217
anchors.centerIn: parent
219
text: Qt.inputMethod.keyboardRectangle + " "
224
onClicked: clickBehindOSKDetectedIndicator.visible = true
225
onPressed: clickBehindOSKDetectedIndicator.state = "highlight"
226
onReleased: clickBehindOSKDetectedIndicator.state = "default"