From 2b64576029dbda555af414bcf71b0f2dd744635f Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Mon, 9 May 2016 02:33:37 -0400 Subject: [PATCH] Rework param search ui (#3353) --- src/QmlControls/ParameterEditor.qml | 10 +++++----- src/QmlControls/ScreenTools.qml | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/QmlControls/ParameterEditor.qml b/src/QmlControls/ParameterEditor.qml index bef323c5d..f36ec7fad 100644 --- a/src/QmlControls/ParameterEditor.qml +++ b/src/QmlControls/ParameterEditor.qml @@ -71,20 +71,20 @@ QGCView { height: searchText.height + ScreenTools.defaultFontPixelHeight / 3 spacing: ScreenTools.defaultFontPixelWidth + QGCTextField { + id: searchText + } + QGCButton { anchors.top: searchText.top anchors.bottom: searchText.bottom - text: qsTr("Filter by:") + text: qsTr("Search") onClicked: { _searchResults = controller.searchParametersForComponent(-1, searchText.text) _searchFilter = true } } - QGCTextField { - id: searchText - } - QGCButton { anchors.top: searchText.top anchors.bottom: searchText.bottom diff --git a/src/QmlControls/ScreenTools.qml b/src/QmlControls/ScreenTools.qml index 8b87d5fec..138c5a063 100644 --- a/src/QmlControls/ScreenTools.qml +++ b/src/QmlControls/ScreenTools.qml @@ -63,6 +63,7 @@ Item { smallFontPointSize = defaultFontPointSize * _screenTools.smallFontPointRatio mediumFontPointSize = defaultFontPointSize * _screenTools.mediumFontPointRatio largeFontPointSize = defaultFontPointSize * _screenTools.largeFontPointRatio + console.log("setBasePointSize", defaultFontPixelWidth) } Text { -- 2.22.0