[qet] [4709] Minor : add donate link |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 4709
Author: scorpio810
Date: 2016-09-15 06:35:07 +0200 (Thu, 15 Sep 2016)
Log Message:
-----------
Minor : add donate link
Modified Paths:
--------------
trunk/qelectrotech.qrc
trunk/sources/qeticons.cpp
trunk/sources/qeticons.h
trunk/sources/qetmainwindow.cpp
trunk/sources/qetmainwindow.h
Added Paths:
-----------
trunk/ico/16x16/help-donate.svg
Added: trunk/ico/16x16/help-donate.svg
===================================================================
--- trunk/ico/16x16/help-donate.svg (rev 0)
+++ trunk/ico/16x16/help-donate.svg 2016-09-15 04:35:07 UTC (rev 4709)
@@ -0,0 +1,13 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
+ <defs id="defs3051">
+ <style type="text/css" id="current-color-scheme">
+ .ColorScheme-Text {
+ color:#4d4d4d;
+ }
+ </style>
+ </defs>
+ <path style="fill:currentColor;fill-opacity:1;stroke:none"
+ d="M 7.5 2 L 7.5 3.125 C 6.657105 3.2031674 5.9928939 3.4158583 5.5 3.8125 C 4.95761 4.2447 4.6875 4.88402 4.6875 5.71875 C 4.6875 6.88402 5.38454 7.63984 6.8125 8 L 7.5 8.1875 L 7.5 11.875 C 6.6128298 11.795706 5.7812569 11.601634 5 11.21875 L 4.65625 12.125 C 4.97403 12.31991 5.40785 12.5037 5.9375 12.65625 C 6.4023232 12.785363 6.9259807 12.84223 7.5 12.875 L 7.5 14 L 7.75 14 L 8.34375 14 L 8.5 14 L 8.5 12.875 C 9.349811 12.806571 10.03337 12.547817 10.53125 12.09375 C 11.06515 11.61071 11.34374 10.91102 11.34375 10 C 11.34374 9.26271 11.14405 8.7108 10.75 8.3125 C 10.35592 7.90995 9.7627 7.61971 9 7.4375 L 8.5 7.3125 L 8.5 4.0625 C 8.8855531 4.0914438 9.28709 4.1455968 9.65625 4.25 C 10.07998 4.36442 10.39776 4.51219 10.65625 4.65625 L 10.96875 3.75 C 10.328483 3.3513511 9.507613 3.1129214 8.5 3.0625 L 8.5 2 L 8.34375 2 L 7.75 2 L 7.5 2 z M 7.28125 4.09375 C 7.3467078 4.0827676 7.4301976 4.1016886 7.5 4.09375 L 7.5 7.0625 L 7.21875 7 C 6.74841 6.8856 6.39353 6.71611 6.15625 6.5 C 5.9232 6.27967 5.81249 5.98518 5.8125 5.625 C 5.8124912 4.76855 6.2950199 4.2592177 7.28125 4.09375 z M 8.5 8.40625 L 8.6875 8.46875 C 9.26376 8.61282 9.65889 8.80827 9.875 9.0625 C 10.09534 9.31251 10.18749 9.65573 10.1875 10.0625 C 10.18749 11.19556 9.6245633 11.797264 8.5 11.90625 L 8.5 8.40625 z "
+ class="ColorScheme-Text"
+ />
+</svg>
Modified: trunk/qelectrotech.qrc
===================================================================
--- trunk/qelectrotech.qrc 2016-09-15 03:42:01 UTC (rev 4708)
+++ trunk/qelectrotech.qrc 2016-09-15 04:35:07 UTC (rev 4709)
@@ -250,5 +250,6 @@
<file>ico/22x22/grid.png</file>
<file>ico/22x22/terminalstrip.png</file>
<file>ico/16x16/help-contents.svg</file>
+ <file>ico/16x16/help-donate.svg</file>
</qresource>
</RCC>
Modified: trunk/sources/qeticons.cpp
===================================================================
--- trunk/sources/qeticons.cpp 2016-09-15 03:42:01 UTC (rev 4708)
+++ trunk/sources/qeticons.cpp 2016-09-15 04:35:07 UTC (rev 4709)
@@ -187,6 +187,7 @@
QIcon AutoNum;
QIcon TerminalStrip;
QIcon QETManual;
+ QIcon QETDonate;
}
}
@@ -379,6 +380,7 @@
ProjectFile .addFile(":/ico/oxygen-icons/16x16/mimetypes/application-x-qet-project.png");
ProjectFile .addFile(":/ico/oxygen-icons/22x22/mimetypes/application-x-qet-project.png");
ProjectFile .addFile(":/ico/oxygen-icons/32x32/mimetypes/application-x-qet-project.png");
+ QETDonate .addFile(":/ico/16x16/help-donate.svg");
QETIcon .addFile(":/ico/256x256/qelectrotech.png");
ProjectFileGP .addFile(":/ico/16x16/project-WH.png");
QETLogo .addFile(":/ico/16x16/qet.png");
Modified: trunk/sources/qeticons.h
===================================================================
--- trunk/sources/qeticons.h 2016-09-15 03:42:01 UTC (rev 4708)
+++ trunk/sources/qeticons.h 2016-09-15 04:35:07 UTC (rev 4709)
@@ -196,6 +196,7 @@
extern QIcon AutoNum;
extern QIcon TerminalStrip;
extern QIcon QETManual;
+ extern QIcon QETDonate;
}
}
#endif
Modified: trunk/sources/qetmainwindow.cpp
===================================================================
--- trunk/sources/qetmainwindow.cpp 2016-09-15 03:42:01 UTC (rev 4708)
+++ trunk/sources/qetmainwindow.cpp 2016-09-15 04:35:07 UTC (rev 4709)
@@ -81,6 +81,14 @@
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 @@
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_);
Modified: trunk/sources/qetmainwindow.h
===================================================================
--- trunk/sources/qetmainwindow.h 2016-09-15 03:42:01 UTC (rev 4708)
+++ trunk/sources/qetmainwindow.h 2016-09-15 04:35:07 UTC (rev 4709)
@@ -57,6 +57,7 @@
QAction *whatsthis_action_; ///< Toggle "What's this" mode
QAction *about_qet_; ///< Launch the "About QElectroTech" dialog
QAction *manual_online_; ///< Launch browser on QElectroTech online manual
+ QAction *donate_; ///< Launch browser to donate link
QAction *about_qt_; ///< launch the "About Qt" dialog
QMenu *settings_menu_; ///< Settings menu
QMenu *help_menu_; ///< Help menu