diff options
author | Nils Achtergarde <[email protected]> | 2017-12-30 21:12:12 +0000 |
---|---|---|
committer | Nils Achtergarde <[email protected]> | 2017-12-30 21:12:12 +0000 |
commit | 69ec917b86e591166dd2ed8d7bdc998461cc2cd0 (patch) | |
tree | 55824f2fbb9d8841c80102a959fdce0ac4c0d5f1 /mainwindow.cpp | |
parent | recommit of 3e8f924df839cff1d3b6b097ad4db5a0573b559f (added minor comments) (diff) | |
download | gpg4usb-69ec917b86e591166dd2ed8d7bdc998461cc2cd0.tar.gz gpg4usb-69ec917b86e591166dd2ed8d7bdc998461cc2cd0.zip |
recommit of 1db778e4481eeab3e65d157240fbe963a8113f49 (tabbed about dialog with translator file seperated, but of the encoding of the TRANSLATOR file still has to be taken care of)
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index 57afedd..67e090a 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -636,44 +636,7 @@ void MainWindow::closeEvent(QCloseEvent *event) void MainWindow::slotAbout() { - QPixmap *pixmap = new QPixmap(":gpg4usb-logo.png"); - QString *title = new QString(tr("About") +" "+ qApp->applicationName()); - QString *text = new QString("<center><h2>" + qApp->applicationName() + " " - + qApp->applicationVersion() + "</h2></center>" - + tr("<center>This application allows simple encryption <br>" - "and decryption of text messages or files.<br>" - "It's licensed under the GPL v3<br><br>" - "<b>Developer:</b><br>" - "Bene, Heimer, Juergen, Nils, Ubbo<br><br>" - "<b>Translation:</b><br>" - "%1<br><br>" - "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>.").arg("Viriato/Phol (es), <br>Serse (it), Russell (my),<br>Alessandro (pt_br), Kirill (ru), Tom (vi)") - + tr("<br><br> Built with Qt ") + qVersion() - + tr(" and GPGME ") + GpgME::GpgContext::getGpgmeVersion() +"</center>"); - - QDialog *dialog = new QDialog(this); - dialog->setWindowTitle(*title); - QPushButton *closeButton = new QPushButton(tr("&Close")); - connect(closeButton, SIGNAL(clicked()), dialog, SLOT(close())); - - QGridLayout *layout = new QGridLayout(dialog); - QLabel *pixmapLabel = new QLabel(); - pixmapLabel->setPixmap(*pixmap); - layout->addWidget(pixmapLabel, 0, 0, 1, -1, Qt::AlignCenter); - QLabel *aboutLabel = new QLabel(); - aboutLabel->setText(*text); - aboutLabel->setOpenExternalLinks(true); - layout->addWidget(aboutLabel, 1, 0, 1, -1); - layout->addItem(new QSpacerItem(20, 10, QSizePolicy::Minimum, - QSizePolicy::Fixed), 2, 1, 1, 1); - layout->addItem(new QSpacerItem(20, 20, QSizePolicy::Expanding), 3, 0, 1, 1); - layout->addWidget(closeButton, 3, 1, 1, 1); - layout->addItem(new QSpacerItem(20, 20, QSizePolicy::Expanding), 3, 2, 1, 1); - - dialog->exec(); + new AboutDialog(this); } void MainWindow::slotOpenTranslate() |