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:
parent
776588066a
commit
b210f2021d
2 changed files with 13 additions and 3 deletions
|
@ -86,7 +86,12 @@ Item {
|
||||||
|
|
||||||
StyledText { // heading text
|
StyledText { // heading text
|
||||||
id: airportHeading
|
id: airportHeading
|
||||||
width: parent.width
|
anchors {
|
||||||
|
left: parent.left
|
||||||
|
right: parent.right
|
||||||
|
margins: Style.margin
|
||||||
|
}
|
||||||
|
|
||||||
font.pixelSize: Style.headingFontPixelSize
|
font.pixelSize: Style.headingFontPixelSize
|
||||||
text: isHeliport ? qsTr("Heliport: ") + airportData.ident + " / " + airportData.name
|
text: isHeliport ? qsTr("Heliport: ") + airportData.ident + " / " + airportData.name
|
||||||
: qsTr("Airport: ") + airportData.ident + " / " + airportData.name
|
: qsTr("Airport: ") + airportData.ident + " / " + airportData.name
|
||||||
|
|
|
@ -59,14 +59,19 @@ Item {
|
||||||
|
|
||||||
StyledText { // heading text
|
StyledText { // heading text
|
||||||
id: headingText
|
id: headingText
|
||||||
width: parent.width
|
anchors {
|
||||||
|
left: parent.left
|
||||||
|
right: parent.right
|
||||||
|
margins: Style.margin
|
||||||
|
}
|
||||||
|
|
||||||
text: qsTr("Position: %1").arg(geod.toString(0));
|
text: qsTr("Position: %1").arg(geod.toString(0));
|
||||||
font.pixelSize: Style.headingFontPixelSize
|
font.pixelSize: Style.headingFontPixelSize
|
||||||
Binding {
|
Binding {
|
||||||
when: navaidData.valid
|
when: navaidData.valid
|
||||||
target: headingText
|
target: headingText
|
||||||
property: "text"
|
property: "text"
|
||||||
value: "Navaid: " + navaidData.ident + " / " + navaidData.name
|
value: qsTr("Navaid: %1 / %2").arg(navaidData.ident).arg(navaidData.name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue