From cbbf4aa0d277ad779e2c2dcf42b89579cd708e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Tue, 2 Jul 2013 22:02:52 +0200 Subject: [PATCH] version number 6.5.3 modified help_about_dialog , now uses VERSION in order to set the number version in about.html automatically --- common/yacreader_global.h | 2 +- custom_widgets/help_about_dialog.cpp | 4 +++- files/about.html | 2 +- files/about_es_ES.html | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/common/yacreader_global.h b/common/yacreader_global.h index a8097c06..2beacf5d 100644 --- a/common/yacreader_global.h +++ b/common/yacreader_global.h @@ -1,7 +1,7 @@ #ifndef __YACREADER_GLOBAL_H #define __YACREADER_GLOBAL_H -#define VERSION "6.5.0" +#define VERSION "6.5.3" #define PATH "PATH" #define MAG_GLASS_SIZE "MAG_GLASS_SIZE" diff --git a/custom_widgets/help_about_dialog.cpp b/custom_widgets/help_about_dialog.cpp index da8b78c6..2c7b97b9 100644 --- a/custom_widgets/help_about_dialog.cpp +++ b/custom_widgets/help_about_dialog.cpp @@ -9,6 +9,8 @@ #include #include +#include "yacreader_global.h" + HelpAboutDialog::HelpAboutDialog(QWidget * parent) :QDialog(parent) { @@ -41,7 +43,7 @@ HelpAboutDialog::HelpAboutDialog(const QString & pathAbout,const QString & pathH void HelpAboutDialog::loadAboutInformation(const QString & path) { - aboutText->setHtml(fileToString(path)); + aboutText->setHtml(fileToString(path).arg(VERSION)); aboutText->moveCursor(QTextCursor::Start); } diff --git a/files/about.html b/files/about.html index 892d3c5f..177eb06c 100644 --- a/files/about.html +++ b/files/about.html @@ -24,7 +24,7 @@

General Information

-YACReader - Yet Another Comic Reader - version 6.5.0
+YACReader - Yet Another Comic Reader - version %1
by Luis Ángel San Martín Rodríguez

Contact

    diff --git a/files/about_es_ES.html b/files/about_es_ES.html index 4ccb6ef5..6b64b3ed 100644 --- a/files/about_es_ES.html +++ b/files/about_es_ES.html @@ -24,7 +24,7 @@

    Información general

    -YACReader - Yet Another Comic Reader - versión 6.5.0
    +YACReader - Yet Another Comic Reader - versión %1
    por Luis Ángel San Martín Rodríguez

    Contacto