mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
Minor : add donate link
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4709 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -81,6 +81,14 @@ void QETMainWindow::initCommonActions() {
|
||||
QDesktopServices::openUrl(QUrl(link));
|
||||
});
|
||||
|
||||
donate_ = new QAction(QET::Icons::QETDonate, tr("Faire un don"), this);
|
||||
donate_ -> setStatusTip(tr("Soutenir le projet QElectroTech par un don", "status bar tip"));
|
||||
|
||||
connect(donate_, &QAction::triggered, [this](bool) {
|
||||
QString link = "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZZHC9D7C3MDPC";
|
||||
QDesktopServices::openUrl(QUrl(link));
|
||||
});
|
||||
|
||||
about_qt_ = new QAction(QET::Icons::QtLogo, tr("À propos de &Qt"), this);
|
||||
about_qt_ -> setStatusTip(tr("Affiche des informations sur la bibliothèque Qt", "status bar tip"));
|
||||
connect(about_qt_, SIGNAL(triggered()), qet_app, SLOT(aboutQt()));
|
||||
@@ -101,6 +109,7 @@ void QETMainWindow::initCommonMenus() {
|
||||
help_menu_ -> addSeparator();
|
||||
help_menu_ -> addAction(about_qet_);
|
||||
help_menu_ -> addAction(manual_online_);
|
||||
help_menu_ -> addAction(donate_);
|
||||
help_menu_ -> addAction(about_qt_);
|
||||
|
||||
insertMenu(0, settings_menu_);
|
||||
|
||||
Reference in New Issue
Block a user