mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Use the build number in code
This commit is contained in:
parent
fa0577223e
commit
5e0b1a9f1d
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user