From e6f2c7e7a7fc99803eb97bdcfafdb539d50f234c Mon Sep 17 00:00:00 2001 From: lostjared Date: Tue, 14 Feb 2017 09:59:09 -0800 Subject: [PATCH] added version string to about --- src/main_window.cpp | 7 ++++++- src/qtheaders.h | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main_window.cpp b/src/main_window.cpp index 8b47781..bf65543 100644 --- a/src/main_window.cpp +++ b/src/main_window.cpp @@ -841,6 +841,11 @@ void AC_MainWindow::updateFrame(QImage img) { } void AC_MainWindow::help_About() { - QMessageBox::information(this, tr("About Acid Cam"), tr("Written by Jared Bruni

Social Media Accounts

\n\n GitHub
\nYouTube
Instagram
Facebook
Twitter


\n")); + QString about_str; + QTextStream stream(&about_str); + stream << tr("Acid Cam Qt version: ") << ac_version << "

"; + stream << tr("Written by Jared Bruni

Social Media Accounts

\n\n GitHub
\nYouTube
Instagram
Facebook
Twitter


\n"); + + QMessageBox::information(this, tr("About Acid Cam"), about_str); } diff --git a/src/qtheaders.h b/src/qtheaders.h index cb9f95f..e945692 100644 --- a/src/qtheaders.h +++ b/src/qtheaders.h @@ -1,6 +1,8 @@ #ifndef _QT_HEADERS__ #define _QT_HEADERS__ +#define ac_version "v0.4-Beta" + #include #include #include