Commit 2b645760 authored by Don Gagne's avatar Don Gagne Committed by Lorenz Meier

Rework param search ui (#3353)

parent 40185131
...@@ -71,20 +71,20 @@ QGCView { ...@@ -71,20 +71,20 @@ QGCView {
height: searchText.height + ScreenTools.defaultFontPixelHeight / 3 height: searchText.height + ScreenTools.defaultFontPixelHeight / 3
spacing: ScreenTools.defaultFontPixelWidth spacing: ScreenTools.defaultFontPixelWidth
QGCTextField {
id: searchText
}
QGCButton { QGCButton {
anchors.top: searchText.top anchors.top: searchText.top
anchors.bottom: searchText.bottom anchors.bottom: searchText.bottom
text: qsTr("Filter by:") text: qsTr("Search")
onClicked: { onClicked: {
_searchResults = controller.searchParametersForComponent(-1, searchText.text) _searchResults = controller.searchParametersForComponent(-1, searchText.text)
_searchFilter = true _searchFilter = true
} }
} }
QGCTextField {
id: searchText
}
QGCButton { QGCButton {
anchors.top: searchText.top anchors.top: searchText.top
anchors.bottom: searchText.bottom anchors.bottom: searchText.bottom
......
...@@ -63,6 +63,7 @@ Item { ...@@ -63,6 +63,7 @@ Item {
smallFontPointSize = defaultFontPointSize * _screenTools.smallFontPointRatio smallFontPointSize = defaultFontPointSize * _screenTools.smallFontPointRatio
mediumFontPointSize = defaultFontPointSize * _screenTools.mediumFontPointRatio mediumFontPointSize = defaultFontPointSize * _screenTools.mediumFontPointRatio
largeFontPointSize = defaultFontPointSize * _screenTools.largeFontPointRatio largeFontPointSize = defaultFontPointSize * _screenTools.largeFontPointRatio
console.log("setBasePointSize", defaultFontPixelWidth)
} }
Text { Text {
......
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