diff --git a/apps/launcher/maindialog.cpp b/apps/launcher/maindialog.cpp index 4aa8a48168..42d3d17543 100644 --- a/apps/launcher/maindialog.cpp +++ b/apps/launcher/maindialog.cpp @@ -3,6 +3,8 @@ #include #include +#include +#include #include #include #include @@ -74,7 +76,12 @@ Launcher::MainDialog::MainDialog(QWidget *parent) QString revision(OPENMW_VERSION_COMMIT); revision = revision.left(10); + QDate date(QDate::fromString(__DATE__, QLatin1String("MMM dd yyyy"))); + QTime time(QTime::fromString(__TIME__, QLatin1String("hh:m:ss"))); + versionLabel->setText(tr("OpenMW %0 revision %1").arg(OPENMW_VERSION, revision)); + versionLabel->setToolTip(tr("Compiled on %0 %1").arg(date.toString(Qt::SystemLocaleShortDate), + time.toString(Qt::SystemLocaleShortDate))); createIcons(); }