aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2008-08-10 15:02:29 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2008-08-10 15:02:29 +0000
commita15f36173c10ad44ca3746373fd6a6262522f02a (patch)
tree4b5611e5faeb0c2e727ceac66fed5b6cda8286f5
parentmove files/directories in release dir (diff)
downloadgpg4usb-a15f36173c10ad44ca3746373fd6a6262522f02a.tar.gz
gpg4usb-a15f36173c10ad44ca3746373fd6a6262522f02a.zip
added version & app-name, use it in about-dialog
git-svn-id: http://cpunk.de/svn/src/gpg4usb@127 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r--gpg4usb.pro2
-rw-r--r--gpgwin.cpp30
-rw-r--r--main.cpp3
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("<center>This Application allows you to do simple<br>"
- "encryption/decryption of your text-files.<br>"
- "It's licensed under the GPL v2.0<br><br>"
- "<b>Developer:</b><br>"
- "Bene, Heimer, Juergen, Nils, Ubbo<br><br>"
- "If you have any questions and/or<br>"
- "suggestions, contact us at<br>"
- "gpg4usb at cpunk.de</a><br><br>"
- "or feel free to meet us in our channel at<br>"
- "gpg4usb at conference.jabber.ccc.de<br><br>"
- "and always remember:<br>"
- "cpunk is NOT a bot...</center>"));
+ QMessageBox::about(this, tr("About ") + qApp->applicationName(),
+ "<center><h2>" + qApp->applicationName() + " "
+ + qApp->applicationVersion() +"</h2></center>"
+ +tr("<center>This Application allows you to do simple<br>"
+ "encryption/decryption of your text-files.<br>"
+ "It's licensed under the GPL v2.0<br><br>"
+ "<b>Developer:</b><br>"
+ "Bene, Heimer, Juergen, Nils, Ubbo<br><br>"
+ "If you have any questions and/or<br>"
+ "suggestions, contact us at<br>"
+ "gpg4usb at cpunk.de</a><br><br>"
+ "or feel free to meet us in our channel at<br>"
+ "gpg4usb at conference.jabber.ccc.de<br><br>"
+ "and always remember:<br>"
+ "cpunk is NOT a bot...</center>"));
}
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;