QT_UI: version: 版本信息增加打印编译时间

This commit is contained in:
Calcitem 2020-10-31 22:45:03 +08:00
parent 4c15e3dae0
commit bdd6937fdf
1 changed files with 9 additions and 1 deletions

View File

@ -1069,7 +1069,15 @@ void MillGameWindow::on_actionAbout_A_triggered()
//label_icon2->setScaledContents(true);
//date_text->setText(__DATE__);
version_text->setText(tr("Version: ") + versionNumber);
QString versionText;
if (strcmp(versionNumber, "Unknown")) {
versionText = tr("Version: ") + versionNumber + "\nBuild: " + __DATE__ " " __TIME__;
} else {
versionText = tr("Build: ") + __DATE__ " " __TIME__;
}
version_text->setText(versionText);
version_text->setAlignment(Qt::AlignLeft);
// 布局