mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 04:54:29 -04:00
Use the build number in code
This commit is contained in:
@ -50,7 +50,13 @@ HelpAboutDialog::HelpAboutDialog(const QString &pathAbout, const QString &pathHe
|
||||
|
||||
void HelpAboutDialog::loadAboutInformation(const QString &path)
|
||||
{
|
||||
aboutText->setHtml(fileToString(path).arg(VERSION));
|
||||
QString buildNumber = "0";
|
||||
|
||||
#ifdef BUILD_NUMBER
|
||||
buildNumber = BUILD_NUMBER;
|
||||
#endif
|
||||
|
||||
aboutText->setHtml(fileToString(path).arg(VERSION).arg(buildNumber));
|
||||
aboutText->moveCursor(QTextCursor::Start);
|
||||
}
|
||||
|
||||
@ -72,4 +78,4 @@ QString HelpAboutDialog::fileToString(const QString &path)
|
||||
f.close();
|
||||
|
||||
return content;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user