Skip to content

Commit

Permalink
Rework param search ui (#3353)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonLakeFlyer authored and LorenzMeier committed May 9, 2016
1 parent 4018513 commit 2b64576
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/QmlControls/ParameterEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/QmlControls/ScreenTools.qml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Item {
smallFontPointSize = defaultFontPointSize * _screenTools.smallFontPointRatio
mediumFontPointSize = defaultFontPointSize * _screenTools.mediumFontPointRatio
largeFontPointSize = defaultFontPointSize * _screenTools.largeFontPointRatio
console.log("setBasePointSize", defaultFontPixelWidth)
}

Text {
Expand Down

0 comments on commit 2b64576

Please sign in to comment.