mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 06:53:53 +00:00
Changed development version info text and the tooltip now works on all platforms
This commit is contained in:
parent
19bef4fce8
commit
4e03e9cf87
1 changed files with 5 additions and 6 deletions
|
@ -79,15 +79,14 @@ Launcher::MainDialog::MainDialog(QWidget *parent)
|
||||||
if (revision == tag) {
|
if (revision == tag) {
|
||||||
versionLabel->setText(tr("OpenMW %0 release").arg(OPENMW_VERSION));
|
versionLabel->setText(tr("OpenMW %0 release").arg(OPENMW_VERSION));
|
||||||
} else {
|
} else {
|
||||||
versionLabel->setText(tr("OpenMW unstable, revision %0").arg(revision.left(10)));
|
versionLabel->setText(tr("OpenMW development (%0)").arg(revision.left(10)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the compile date and time
|
// Add the compile date and time
|
||||||
QDate date(QDate::fromString(__DATE__, QLatin1String("MMM dd yyyy")));
|
versionLabel->setToolTip(tr("Compiled on %0 %1").arg(QLocale(QLocale::C).toDate(QString(__DATE__).simplified(),
|
||||||
QTime time(QTime::fromString(__TIME__, QLatin1String("hh:m:ss")));
|
QLatin1String("MMM d yyyy")).toString(Qt::SystemLocaleLongDate),
|
||||||
|
QLocale(QLocale::C).toTime(QString(__TIME__).simplified(),
|
||||||
versionLabel->setToolTip(tr("Compiled on %0 %1").arg(date.toString(Qt::SystemLocaleShortDate),
|
QLatin1String("hh:mm:ss")).toString(Qt::SystemLocaleShortDate)));
|
||||||
time.toString(Qt::SystemLocaleShortDate)));
|
|
||||||
|
|
||||||
createIcons();
|
createIcons();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue