Browse Source

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

QGC4.4
Gus Grubba 8 years ago
parent
commit
898f386a6a
  1. 18
      src/QmlControls/ParameterEditor.qml

18
src/QmlControls/ParameterEditor.qml

@ -56,6 +56,17 @@ QGCView { @@ -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 { @@ -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

Loading…
Cancel
Save