- Now VERSION is defined in src.pro, avoid duplication, cleaner and more adapted.

This commit is contained in:
Christophe Dumez 2007-03-08 23:32:54 +00:00
commit af3384f748
4 changed files with 9 additions and 10 deletions

View file

@ -23,7 +23,6 @@
#define ABOUT_H
#include "ui_about.h"
#define VERSION "v0.9.0beta5"
class about : public QDialog, private Ui::AboutDlg{
Q_OBJECT
@ -35,7 +34,7 @@ class about : public QDialog, private Ui::AboutDlg{
// Set icons
logo->setPixmap(QPixmap(QString::fromUtf8(":/Icons/qbittorrent32.png")));
//Title
lb_name->setText("<b><h1>"+tr("qBittorrent")+" "+VERSION"</h1></b>");
lb_name->setText("<b><h1>"+tr("qBittorrent")+" "VERSION"</h1></b>");
// Thanks
te_thanks->append("<ul><li>I would like to thank sourceforge.net for hosting qBittorrent project.</li>");
te_thanks->append("<li>I also want to thank Jeffery Fernandez (jeffery@qbittorrent.org), project consultant, webdevelopper and RPM packager, for his help.</li>");

View file

@ -43,11 +43,6 @@
#include "deleteThread.h"
#define VERSION "v0.9.0beta5"
#define VERSION_MAJOR 0
#define VERSION_MINOR 9
#define VERSION_BUGFIX 0
using namespace libtorrent;
namespace fs = boost::filesystem;

View file

@ -13,6 +13,12 @@ DEPENDPATH += . trayicon
INCLUDEPATH += $$TRAYICON_CPP
CONFIG += qt x11
# Update this VERSION for each release
DEFINES += VERSION=\\\"v0.9.0beta5\\\"
DEFINES += VERSION_MAJOR=0
DEFINES += VERSION_MINOR=9
DEFINES += VERSION_BUGFIX=0
contains(DEBUG_MODE, 1){
CONFIG += debug
message(Debug build!)