1
0
Fork 0

Launcher: indent location detail heading text.

As suggested on the devel list, this looks more comfortable with a
margin set.
This commit is contained in:
James Turner 2018-09-01 15:07:29 +01:00
parent 776588066a
commit b210f2021d
2 changed files with 13 additions and 3 deletions

View file

@ -86,7 +86,12 @@ Item {
StyledText { // heading text
id: airportHeading
width: parent.width
anchors {
left: parent.left
right: parent.right
margins: Style.margin
}
font.pixelSize: Style.headingFontPixelSize
text: isHeliport ? qsTr("Heliport: ") + airportData.ident + " / " + airportData.name
: qsTr("Airport: ") + airportData.ident + " / " + airportData.name

View file

@ -59,14 +59,19 @@ Item {
StyledText { // heading text
id: headingText
width: parent.width
anchors {
left: parent.left
right: parent.right
margins: Style.margin
}
text: qsTr("Position: %1").arg(geod.toString(0));
font.pixelSize: Style.headingFontPixelSize
Binding {
when: navaidData.valid
target: headingText
property: "text"
value: "Navaid: " + navaidData.ident + " / " + navaidData.name
value: qsTr("Navaid: %1 / %2").arg(navaidData.ident).arg(navaidData.name)
}
}