aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-01-09 00:33:53 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-01-09 00:33:53 +0000
commit55a52020e7278151912d58af5274e38d0a131e72 (patch)
treeb50ed522ec96d3b935d222fccda36569c9b0436b
parentfix build on qt < 4.8 (diff)
downloadgpg4usb-55a52020e7278151912d58af5274e38d0a131e72.tar.gz
gpg4usb-55a52020e7278151912d58af5274e38d0a131e72.zip
tell gpgme and qt version this app was compiled with in about dialog
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@736 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r--gpgcontext.cpp4
-rw-r--r--gpgcontext.h1
-rw-r--r--mainwindow.cpp4
3 files changed, 8 insertions, 1 deletions
diff --git a/gpgcontext.cpp b/gpgcontext.cpp
index 14ee25b..1dd01ff 100644
--- a/gpgcontext.cpp
+++ b/gpgcontext.cpp
@@ -778,6 +778,10 @@ GpgKey GpgContext::getKeyById(QString id) {
return GpgKey();
}
+QString GpgContext::getGpgmeVersion() {
+ return QString(gpgme_check_version(NULL));
+}
+
}
diff --git a/gpgcontext.h b/gpgcontext.h
index 54ddb12..4efc3fe 100644
--- a/gpgcontext.h
+++ b/gpgcontext.h
@@ -134,6 +134,7 @@ public:
GpgKey getKeyById(QString id);
static QString gpgErrString(gpgme_error_t err);
+ static QString getGpgmeVersion();
/**
* @brief
diff --git a/mainwindow.cpp b/mainwindow.cpp
index d90ffd1..e247d19 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -592,7 +592,9 @@ void MainWindow::about()
"If you have any questions or suggestions have a look<br/>"
"at our <a href=\"http://gpg4usb.cpunk.de/contact.php\">"
"contact page</a> or send a mail to our<br/> mailing list at"
- " <a href=\"mailto:[email protected]\">[email protected]</a>."));
+ " <a href=\"mailto:[email protected]\">[email protected]</a>.")
+ + tr("<br/><br/> Built with Qt ") + qVersion()
+ + tr(" and GPGME ") + GpgME::GpgContext::getGpgmeVersion());
QDialog *dialog = new QDialog(this);
dialog->setWindowTitle(*title);