#5329 Fix build date in about dialog
This commit is contained in:
parent
f58e95c96f
commit
a70a2bf864
|
@ -32,7 +32,9 @@ AboutDialog::AboutDialog(QWidget* parent, const QString& synergyApp) :
|
||||||
version = version + '-' + VERSION_STAGE + '-' + VERSION_REVISION;
|
version = version + '-' + VERSION_STAGE + '-' + VERSION_REVISION;
|
||||||
m_pLabelSynergyVersion->setText(version);
|
m_pLabelSynergyVersion->setText(version);
|
||||||
|
|
||||||
m_pLabelBuildDate->setText(QDate::currentDate().toString());
|
QString buildDateString = QString::fromLocal8Bit(__DATE__).simplified();
|
||||||
|
QDate buildDate = QLocale("en_US").toDate(buildDateString, "MMM d yyyy");
|
||||||
|
m_pLabelBuildDate->setText(buildDate.toString(Qt::SystemLocaleLongDate));
|
||||||
|
|
||||||
// change default size based on os
|
// change default size based on os
|
||||||
#if defined(Q_OS_MAC)
|
#if defined(Q_OS_MAC)
|
||||||
|
|
Loading…
Reference in New Issue