From 79aefc30833413435ed3199ba00338529e9f1638 Mon Sep 17 00:00:00 2001 From: nils Date: Sat, 29 Jan 2011 22:57:00 +0000 Subject: restructured code of about dialog git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@458 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- gpgwin.cpp | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) (limited to 'gpgwin.cpp') diff --git a/gpgwin.cpp b/gpgwin.cpp index 983512c..0771e52 100644 --- a/gpgwin.cpp +++ b/gpgwin.cpp @@ -449,21 +449,28 @@ void GpgWin::closeEvent(QCloseEvent *event) void GpgWin::about() { - QMessageBox::about(this, tr("About ") + qApp->applicationName(), - "

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

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

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

" - "Translation:
" - "Alessandro (pt_br), Kirill (ru), Viriato (es), Serse (it)

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

" - "or feel free to meet us in our xmpp-channel:
" - "gpg4usb at conference.jabber.ccc.de
")); + QPixmap *pixmap = new QPixmap(iconPath + "gpg4usb-logo.png"); + QString *title = new QString(tr("About ") + qApp->applicationName()); + QString *text = new QString("

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

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

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

" + "Translation:
" + "Alessandro (pt_br), Kirill (ru), Viriato (es), Serse (it)

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

" + "or feel free to meet us in our xmpp-channel:
" + "gpg4usb at conference.jabber.ccc.de
")); + + QMessageBox::about(this, *title, *text); +/* aboutBox.setText(*text); + aboutBox.setIconPixmap(*pixmap); + aboutBox.setWindowTitle(*title); + aboutBox.exec();*/ } void GpgWin::openTranslate() { -- cgit v1.2.3