From f6e82b569747cc11ebd9ceade6356894a4edde66 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Fri, 25 Sep 2015 11:54:03 -0700 Subject: [PATCH] Always search name and descriptions --- src/QmlControls/ParameterEditor.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/QmlControls/ParameterEditor.qml b/src/QmlControls/ParameterEditor.qml index ab36a5f6c..64378485f 100644 --- a/src/QmlControls/ParameterEditor.qml +++ b/src/QmlControls/ParameterEditor.qml @@ -70,7 +70,7 @@ QGCView { QGCViewDialog { 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 hideDialog() } @@ -92,6 +92,8 @@ QGCView { width: defaultTextWidth * 20 } +/* + // Leaving in for possible future use. We'll see if needed from user comments. QGCLabel { id: searchInLabel anchors.topMargin: defaultTextHeight @@ -112,10 +114,11 @@ QGCView { anchors.top: searchInName.bottom text: "Descriptions" } +*/ QGCLabel { anchors.topMargin: defaultTextHeight - anchors.top: searchInDescriptions.bottom + anchors.top: searchFor.bottom width: parent.width wrapMode: Text.WordWrap text: "Hint: Leave 'Search For' blank and click Apply to list all parameters sorted by name." -- 2.22.0