Tweaks to location search based on feedback
This commit is contained in:
parent
8f205040dc
commit
198f9ccb70
2 changed files with 19 additions and 4 deletions
|
@ -140,7 +140,7 @@ Item {
|
||||||
anchors.margins: Style.margin
|
anchors.margins: Style.margin
|
||||||
|
|
||||||
autoSubmit: false
|
autoSubmit: false
|
||||||
placeholder: qsTr("Enter a navaid or airport ID, name or a latitude & longitude");
|
placeholder: qsTr("Search for an airport or navaid");
|
||||||
|
|
||||||
onSearch: {
|
onSearch: {
|
||||||
// when th search term is cleared, show the history
|
// when th search term is cleared, show the history
|
||||||
|
@ -163,13 +163,26 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
id: searchHelpText
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.top: searchButton.bottom
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.margins: Style.margin
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
|
|
||||||
|
text: qsTr("Enter the name, partial name or ident of a navaid or fix, or an " +
|
||||||
|
"airport name or ICAO identifier. Alternatively, enter a latitude & longitude in " +
|
||||||
|
"decimal notation, i.e. '-3.5, 55.4'")
|
||||||
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: headerSplit
|
id: headerSplit
|
||||||
color: Style.frameColor
|
color: Style.frameColor
|
||||||
height: 1
|
height: 1
|
||||||
width: parent.width - Style.inset
|
width: parent.width - Style.inset
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.top: searchButton.bottom
|
anchors.top: searchHelpText.bottom
|
||||||
anchors.topMargin: Style.margin
|
anchors.topMargin: Style.margin
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -94,8 +94,10 @@ FocusScope
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
root.forceActiveFocus();
|
if (!buttonText.activeFocus) {
|
||||||
buttonText.text = "";
|
root.forceActiveFocus();
|
||||||
|
buttonText.selectAll();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue