1
0
Fork 0

Make launcher summary version dynamic.

This commit is contained in:
James Turner 2017-05-16 13:25:33 +01:00
parent 4b48aca411
commit 3c8bedb9c3
2 changed files with 4 additions and 1 deletions

View file

@ -407,7 +407,7 @@
</widget> </widget>
</item> </item>
<item row="0" column="3" colspan="2"> <item row="0" column="3" colspan="2">
<widget class="QLabel" name="label"> <widget class="QLabel" name="appTitleLabel">
<property name="font"> <property name="font">
<font> <font>
<pointsize>48</pointsize> <pointsize>48</pointsize>

View file

@ -22,6 +22,7 @@
#include <Main/options.hxx> #include <Main/options.hxx>
#include <Main/fg_init.hxx> #include <Main/fg_init.hxx>
#include <Main/fg_props.hxx> #include <Main/fg_props.hxx>
#include "version.h"
// launcher headers // launcher headers
#include "QtLauncher.hxx" #include "QtLauncher.hxx"
@ -93,6 +94,8 @@ LauncherMainWindow::LauncherMainWindow() :
m_ui.reset(new Ui::Launcher); m_ui.reset(new Ui::Launcher);
m_ui->setupUi(this); m_ui->setupUi(this);
m_ui->appTitleLabel->setText(tr("FlightGear %1").arg(FLIGHTGEAR_VERSION));
QMenuBar* mb = menuBar(); QMenuBar* mb = menuBar();
#if !defined(Q_OS_MAC) #if !defined(Q_OS_MAC)