Commit 898f386a authored by Gus Grubba's avatar Gus Grubba

Work around using the Clear button while mobile keyboard is up.

parent b59038bb
......@@ -56,6 +56,17 @@ QGCView {
anchors.right: parent.right
spacing: ScreenTools.defaultFontPixelWidth
Timer {
id: clearTimer
interval: 100;
running: false;
repeat: false
onTriggered: {
searchText.text = ""
controller.searchText = ""
}
}
QGCLabel {
anchors.baseline: clearButton.baseline
text: qsTr("Search:")
......@@ -71,7 +82,12 @@ QGCView {
QGCButton {
id: clearButton
text: qsTr("Clear")
onClicked: searchText.text = ""
onClicked: {
if(ScreenTools.isMobile) {
Qt.inputMethod.hide();
}
clearTimer.start()
}
}
} // Row - Header
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment