From fa186f5ec1430c6b75ffbcf2bf0848b6498e90fe Mon Sep 17 00:00:00 2001 From: pvdk Date: Wed, 22 Jan 2014 17:51:10 +0100 Subject: [PATCH] Added version information to the launcher --- apps/launcher/maindialog.cpp | 9 ++++++++ files/ui/mainwindow.ui | 42 +++++++++++++++++++++++++++++++----- 2 files changed, 46 insertions(+), 5 deletions(-) diff --git a/apps/launcher/maindialog.cpp b/apps/launcher/maindialog.cpp index 9b3c4e1b0..4aa8a4816 100644 --- a/apps/launcher/maindialog.cpp +++ b/apps/launcher/maindialog.cpp @@ -1,5 +1,8 @@ #include "maindialog.hpp" +#include + +#include #include #include #include @@ -67,6 +70,12 @@ Launcher::MainDialog::MainDialog(QWidget *parent) // Remove what's this? button setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint); + // Add version information to bottom of the window + QString revision(OPENMW_VERSION_COMMIT); + revision = revision.left(10); + + versionLabel->setText(tr("OpenMW %0 revision %1").arg(OPENMW_VERSION, revision)); + createIcons(); } diff --git a/files/ui/mainwindow.ui b/files/ui/mainwindow.ui index a1dfb172b..5f2be05a2 100644 --- a/files/ui/mainwindow.ui +++ b/files/ui/mainwindow.ui @@ -2,6 +2,14 @@ MainWindow + + + 0 + 0 + 575 + 535 + + 575 @@ -56,11 +64,35 @@ - - - QDialogButtonBox::Close - - + + + + + OpenMW version + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + QDialogButtonBox::Close + + + +