From 3c8bedb9c3dffeb4eb1997c4860736f471389fb6 Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 16 May 2017 13:25:33 +0100 Subject: [PATCH] Make launcher summary version dynamic. --- src/GUI/Launcher.ui | 2 +- src/GUI/LauncherMainWindow.cxx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/GUI/Launcher.ui b/src/GUI/Launcher.ui index 1a086fcc7..6dbc29bf0 100644 --- a/src/GUI/Launcher.ui +++ b/src/GUI/Launcher.ui @@ -407,7 +407,7 @@ - + 48 diff --git a/src/GUI/LauncherMainWindow.cxx b/src/GUI/LauncherMainWindow.cxx index 143e2a099..a1f8a7f2a 100644 --- a/src/GUI/LauncherMainWindow.cxx +++ b/src/GUI/LauncherMainWindow.cxx @@ -22,6 +22,7 @@ #include
#include
#include
+#include "version.h" // launcher headers #include "QtLauncher.hxx" @@ -93,6 +94,8 @@ LauncherMainWindow::LauncherMainWindow() : m_ui.reset(new Ui::Launcher); m_ui->setupUi(this); + m_ui->appTitleLabel->setText(tr("FlightGear %1").arg(FLIGHTGEAR_VERSION)); + QMenuBar* mb = menuBar(); #if !defined(Q_OS_MAC)