From 1b07e05e5d2be3f1c0bf5ab85c38613572da2f23 Mon Sep 17 00:00:00 2001 From: xarkes Date: Mon, 27 Nov 2017 17:24:31 +0100 Subject: [PATCH] Fix #110 (top 3 contribs in About Dialog) --- src/cutter.h | 1 + src/dialogs/AboutDialog.cpp | 6 ++++-- src/dialogs/AboutDialog.ui | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/cutter.h b/src/cutter.h index 320714ae..0bfecf63 100644 --- a/src/cutter.h +++ b/src/cutter.h @@ -30,6 +30,7 @@ #define __question(x) (QMessageBox::Yes==QMessageBox::question (this, "Alert", QString(x), QMessageBox::Yes| QMessageBox::No)) #define APPNAME "Cutter" +#define CUTTER_VERSION "1.0" #define Core() (CutterCore::getInstance()) diff --git a/src/dialogs/AboutDialog.cpp b/src/dialogs/AboutDialog.cpp index 6d095b42..7ee429c9 100644 --- a/src/dialogs/AboutDialog.cpp +++ b/src/dialogs/AboutDialog.cpp @@ -1,5 +1,6 @@ #include "AboutDialog.h" #include "ui_AboutDialog.h" +#include "cutter.h" #include "r_version.h" AboutDialog::AboutDialog(QWidget *parent) : @@ -9,12 +10,13 @@ AboutDialog::AboutDialog(QWidget *parent) : ui->setupUi(this); setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint)); ui->label->setText(tr("

Cutter

" - "Version 1.0 alpha
" + "Version "CUTTER_VERSION"
" "Using r2-" R2_GITTAP "

License

" "This Software is released under the GNU General Public License v3.0" "

Authors

" - "Hugo Teso <hugo.teso@gmail.org>\nSoon to be thousands more!")); + "xarkes, thestr4ng3r, ballessay" + "Based on Hugo Teso <hugo.teso@gmail.org> work (originally Iaito).")); } AboutDialog::~AboutDialog() {} diff --git a/src/dialogs/AboutDialog.ui b/src/dialogs/AboutDialog.ui index 370e0dbd..fa8fe2e3 100644 --- a/src/dialogs/AboutDialog.ui +++ b/src/dialogs/AboutDialog.ui @@ -11,7 +11,7 @@ - Dialog + About Cutter