Commit f6e82b56 authored by Don Gagne's avatar Don Gagne

Always search name and descriptions

parent 87865088
...@@ -70,7 +70,7 @@ QGCView { ...@@ -70,7 +70,7 @@ QGCView {
QGCViewDialog { QGCViewDialog {
function accept() { function accept() {
_searchResults = controller.searchParametersForComponent(-1, searchFor.text, searchInName.checked, searchInDescriptions.checked) _searchResults = controller.searchParametersForComponent(-1, searchFor.text, true /*searchInName.checked*/, true /*searchInDescriptions.checked*/)
_searchFilter = true _searchFilter = true
hideDialog() hideDialog()
} }
...@@ -92,6 +92,8 @@ QGCView { ...@@ -92,6 +92,8 @@ QGCView {
width: defaultTextWidth * 20 width: defaultTextWidth * 20
} }
/*
// Leaving in for possible future use. We'll see if needed from user comments.
QGCLabel { QGCLabel {
id: searchInLabel id: searchInLabel
anchors.topMargin: defaultTextHeight anchors.topMargin: defaultTextHeight
...@@ -112,10 +114,11 @@ QGCView { ...@@ -112,10 +114,11 @@ QGCView {
anchors.top: searchInName.bottom anchors.top: searchInName.bottom
text: "Descriptions" text: "Descriptions"
} }
*/
QGCLabel { QGCLabel {
anchors.topMargin: defaultTextHeight anchors.topMargin: defaultTextHeight
anchors.top: searchInDescriptions.bottom anchors.top: searchFor.bottom
width: parent.width width: parent.width
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
text: "Hint: Leave 'Search For' blank and click Apply to list all parameters sorted by name." text: "Hint: Leave 'Search For' blank and click Apply to list all parameters sorted by name."
......
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