Use the build number in code

This commit is contained in:
Luis Ángel San Martín 2019-08-21 21:28:05 +02:00
parent fa0577223e
commit 5e0b1a9f1d
4 changed files with 18 additions and 5 deletions

View File

@ -83,7 +83,14 @@ int main(int argc, char **argv)
app.setApplicationName("YACReaderLibrary");
app.setOrganizationName("YACReader");
app.setApplicationVersion(VERSION);
QString buildNumber = ".0";
#ifdef BUILD_NUMBER
buildNumber = "." + BUILD_NUMBER;
#endif
app.setApplicationVersion(VERSION + buildNumber);
QTextStream qout(stdout);

View File

@ -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);
}

View File

@ -24,7 +24,7 @@
<h1>General Information</h1>
<p>
YACReader - Yet Another Comic Reader - version %1 <br/>
YACReader - Yet Another Comic Reader - version %1.%2 <br/>
by Luis Ángel San Martín Rodríguez
<h2>Contact</h2>
<ul>

View File

@ -24,7 +24,7 @@
<h1>Información general</h1>
<p>
YACReader - Yet Another Comic Reader - versión %1 <br/>
YACReader - Yet Another Comic Reader - versión %1.%2 <br/>
por Luis Ángel San Martín Rodríguez
<h2>Contacto </h2>
<ul>