"
"| Christian Hohnstädt | <christian@hohnstaedt.de> |
"
" | Programming, Translation and Testing |
"
@@ -109,6 +108,33 @@ void MainWindow::about()
about->exec();
}
+void MainWindow::donations()
+{
+ Ui::About ui;
+ QDialog *d = new QDialog(this, 0);
+
+ ui.setupUi(d);
+
+ QString cont;
+ cont.sprintf("XCA
"
+ "This program is free software."
+ "
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."
+ "
Everybody who wants to support my work at XCA may use "
+ "my PayPal account: <christian@hohnstaedt.de> "
+ "for a donation."
+ "
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::help()
{
QDialog *h = new QDialog(this, 0);
diff --git a/widgets/MW_menu.cpp b/widgets/MW_menu.cpp
index 32eea86b..d084cd80 100644
--- a/widgets/MW_menu.cpp
+++ b/widgets/MW_menu.cpp
@@ -92,6 +92,7 @@ void MainWindow::init_menu()
help = menuBar()->addMenu(tr("&Help") );
help->addAction(tr("&Content"), this, SLOT(help()), Qt::Key_F1 );
help->addAction(tr("&About"), this, SLOT(about()) );
+ help->addAction(tr("Donations"), this, SLOT(donations()) );
wdList += import;
}
diff --git a/widgets/MainWindow.h b/widgets/MainWindow.h
index 3642762c..9e466467 100644
--- a/widgets/MainWindow.h
+++ b/widgets/MainWindow.h
@@ -124,6 +124,7 @@ class MainWindow: public QMainWindow, public Ui::MainWindow
void dump_database();
void connNewX509(NewX509 *nx);
void about();
+ void donations();
void help();
void import_dbdump();