From 55a52020e7278151912d58af5274e38d0a131e72 Mon Sep 17 00:00:00 2001 From: ubbo Date: Mon, 9 Jan 2012 00:33:53 +0000 Subject: 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 --- gpgcontext.cpp | 4 ++++ gpgcontext.h | 1 + mainwindow.cpp | 4 +++- 3 files changed, 8 insertions(+), 1 deletion(-) 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
" "at our " "contact page or send a mail to our
mailing list at" - " gpg4usb@gzehn.de.")); + " gpg4usb@gzehn.de.") + + tr("

Built with Qt ") + qVersion() + + tr(" and GPGME ") + GpgME::GpgContext::getGpgmeVersion()); QDialog *dialog = new QDialog(this); dialog->setWindowTitle(*title); -- cgit v1.2.3