void MainWindow::donations() { Ui::About ui; QDialog *d = new QDialog(this, 0); ui.setupUi(d); QString cont; cont.sprintf("<p><h3><center><u>XCA</u></center></h3>" "<p>This program is free software." "<p>It doesn't bother you with Pop-Ups, Countdown-Timers, " "commercials or any type of 'Register Now' buttons. " "Nor are there any constraints or any limited functionality." "<p>Everybody who wants to support my work at XCA may use " "my PayPal account: <b><[email protected]></b> " "for a donation." "<p>Every donator will in return be honored in the about dialog " "of the next version." ); d->setWindowTitle(tr(XCA_TITLE)); ui.image->setPixmap( *keyImg ); ui.image1->setPixmap( *certImg ); ui.textbox->setHtml(cont); d->exec(); }
void Mainwindow::on_actionAbout_triggered(bool) { Ui::About about; QDialog *widget = new QDialog; about.setupUi(widget); about.version->setText (QString ("Version %1: %2, %3").arg (CONFIG_version_str) .arg (__DATE__).arg (__TIME__)); widget->show (); widget->exec (); }
void MainWindow::on_actionHelpAbout_triggered() { QDialog *aboutDialog = new QDialog; Ui::About about; about.setupUi(aboutDialog); about.versionLabel->setText( QString("Version: %1 Revision: %2").arg(version).arg(revision)); aboutDialog->exec(); delete aboutDialog; }
void MainWindow::about() { Ui::About ui; QDialog *about = new QDialog(this, 0); ui.setupUi(about); QString cont; cont.sprintf("<p><h3><center><u>XCA</u></center></h3>" "<p>Copyright 2001 - 2010 by Christian Hohnstädt\n" "<p>Version : <b>" VER "</b>" "<p>%s<br>QT: %s" "<hr><table border=0>" "<tr><th align=left>Christian Hohnstädt</th><td><u><[email protected]></u></td></tr>" "<tr><td></td><td>Programming, Translation and Testing</td></tr>" "<tr><th align=left>Kerstin Steinhauff</th><td><u><[email protected]></td></u></tr>" "<tr><td></td><td>Arts and Graphics</td></tr>" "<tr><th align=left>Ilya Kozhevnikov</th><td><u><[email protected]></u></td></tr>" "<tr><td></td><td>Windows registry stuff</td></tr>" "<tr><th align=left>Wolfgang Glas</th><td><u><[email protected]></u></td></tr>" "<tr><td></td><td>SPKAC support and Testing</td></tr>" "<tr><th align=left>Geoff Beier</th><td><u><[email protected]></u></td></tr>" "<tr><td></td><td>MAC OSX support and Testing</td></tr>" "</table><hr><center><u><b>General support</b></u></center>" "<p><table>" "<tr><td><b>Mark Foster</b></td><td><u><[email protected]></u></td></tr>" "<tr><td><b>Thorsten Weiss</b></td><td><u><[email protected]></u></td></tr>" "<tr><td><b>Oobj</b></td><td><u><www.oobj.com.br></u></td></tr>" "<tr><td><b>Frank Isemann</b></td><td><u><[email protected]></u></td></tr>" "</table><hr><center><u><b>Translations</b></u></center>" "<p><table>" "<tr><th>German</th><td>Christian Hohnstädt</td></tr>" "<tr><th>Russian</th><td>Pavel Belly <[email protected]></td></tr>" "</table>", OPENSSL_VERSION_TEXT, QT_VERSION_STR ); about->setWindowTitle(tr(XCA_TITLE)); ui.image->setPixmap( *keyImg ); ui.image1->setPixmap( *certImg ); ui.textbox->setHtml(cont); about->exec(); delete about; }