From a15f36173c10ad44ca3746373fd6a6262522f02a Mon Sep 17 00:00:00 2001 From: ubbo Date: Sun, 10 Aug 2008 15:02:29 +0000 Subject: added version & app-name, use it in about-dialog git-svn-id: http://cpunk.de/svn/src/gpg4usb@127 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- gpg4usb.pro | 2 +- gpgwin.cpp | 30 ++++++++++++++++-------------- main.cpp | 3 +++ 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/gpg4usb.pro b/gpg4usb.pro index c604338..91bb5c2 100644 --- a/gpg4usb.pro +++ b/gpg4usb.pro @@ -3,9 +3,9 @@ ###################################################################### TEMPLATE = app -VERSION = 0.1 unix:TARGET = start_linux win32:TARGET = start_windows +mac:TARGET = start_mac DESTDIR = release DEPENDPATH += . INCLUDEPATH += . diff --git a/gpgwin.cpp b/gpgwin.cpp index f78a69f..acaeabf 100644 --- a/gpgwin.cpp +++ b/gpgwin.cpp @@ -278,7 +278,7 @@ void GpgWin::setCurrentFile(const QString &fileName) else shownName = strippedName(curFile); - setWindowTitle(tr("%1[*] - %2").arg(shownName).arg(tr("gpg4usb"))); + setWindowTitle(tr("%1[*] - %2").arg(shownName).arg(qApp->applicationName())); } QString GpgWin::strippedName(const QString &fullFileName) @@ -337,19 +337,21 @@ void GpgWin::print() void GpgWin::about() { - QMessageBox::about(this, tr("About gpg4usb"), - tr("
This Application allows you to do simple
" - "encryption/decryption of your text-files.
" - "It's licensed under the GPL v2.0

" - "Developer:
" - "Bene, Heimer, Juergen, Nils, Ubbo

" - "If you have any questions and/or
" - "suggestions, contact us at
" - "gpg4usb at cpunk.de

" - "or feel free to meet us in our channel at
" - "gpg4usb at conference.jabber.ccc.de

" - "and always remember:
" - "cpunk is NOT a bot...
")); + QMessageBox::about(this, tr("About ") + qApp->applicationName(), + "

" + qApp->applicationName() + " " + + qApp->applicationVersion() +"

" + +tr("
This Application allows you to do simple
" + "encryption/decryption of your text-files.
" + "It's licensed under the GPL v2.0

" + "Developer:
" + "Bene, Heimer, Juergen, Nils, Ubbo

" + "If you have any questions and/or
" + "suggestions, contact us at
" + "gpg4usb at cpunk.de

" + "or feel free to meet us in our channel at
" + "gpg4usb at conference.jabber.ccc.de

" + "and always remember:
" + "cpunk is NOT a bot...
")); } void GpgWin::encrypt() diff --git a/main.cpp b/main.cpp index 5072646..17b2400 100644 --- a/main.cpp +++ b/main.cpp @@ -33,6 +33,9 @@ int main(int argc, char *argv[]) QApplication app(argc, argv); + app.setApplicationVersion("0.1"); + app.setApplicationName("gpg4usb"); + //internationalize QString locale = QLocale::system().name(); QTranslator translator; -- cgit v1.2.3