diff --git a/src/GUI/LocationWidget.cxx b/src/GUI/LocationWidget.cxx
index 622f65f8c..a06fc1c1b 100644
--- a/src/GUI/LocationWidget.cxx
+++ b/src/GUI/LocationWidget.cxx
@@ -869,6 +869,10 @@ void LocationWidget::onLocationChanged()
} // of have parkings
} // of was able to create dynamics
+ const QString airportName = QString::fromStdString(apt->name());
+ const QString icao = QString::fromStdString(apt->ident());
+
+ m_ui->titleLabel->setText(tr("%1 (%2)").arg(airportName).arg(icao));
} else if (m_locationIsLatLon) {
m_ui->stack->setCurrentIndex(1);
m_ui->navaidDiagram->setGeod(m_geodLocation);
@@ -876,6 +880,10 @@ void LocationWidget::onLocationChanged()
// navaid
m_ui->stack->setCurrentIndex(1);
m_ui->navaidDiagram->setNavaid(m_location);
+
+ const QString name = QString::fromStdString(m_location->name());
+ const QString ident = QString::fromStdString(m_location->ident());
+ m_ui->navTitleLabel->setText(tr("%1 (%2)").arg(name).arg(ident));
}
}
diff --git a/src/GUI/LocationWidget.ui b/src/GUI/LocationWidget.ui
index d4e9fe125..c5d4b80be 100644
--- a/src/GUI/LocationWidget.ui
+++ b/src/GUI/LocationWidget.ui
@@ -26,7 +26,7 @@
-
- 1
+ 0
@@ -42,31 +42,34 @@
0
-
-
+
-
+
+
+ nm
+
+
+ 10
+
+
+
+ -
Parking:
- -
+
-
Runway:
- -
-
-
- On final approach at distance:
-
-
-
- -
+
-
- -
+
-
Qt::Horizontal
@@ -79,10 +82,27 @@
- -
+
-
- -
+
-
+
+
+ On final approach at distance:
+
+
+
+ -
+
+
+ TextLabel
+
+
+ Qt::AlignCenter
+
+
+
+ -
@@ -92,20 +112,10 @@
- -
-
-
- nm
-
-
- 10
-
-
-
-
+
0
@@ -118,20 +128,7 @@
0
- -
-
-
- kts
-
-
- 9999
-
-
- 120
-
-
-
- -
+
-
ft
@@ -150,33 +147,7 @@
- -
-
-
- Altitude:
-
-
- Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 200
- 200
-
-
-
-
- -
+
-
-
@@ -195,17 +166,17 @@
- -
-
+
-
+
- Airspeed:
+ Altitude:
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
- -
+
-
Offset
@@ -288,7 +259,17 @@
- -
+
-
+
+
+ Airspeed:
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+
+ -
Heading:
@@ -298,7 +279,7 @@
- -
+
-
true
@@ -308,6 +289,45 @@
+ -
+
+
+ kts
+
+
+ 9999
+
+
+ 120
+
+
+
+ -
+
+
+ TextLabel
+
+
+ Qt::AlignCenter
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 200
+ 200
+
+
+
+