From 163855494445806af5fbbc39cce135454f56e382 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 31 Oct 2010 12:03:24 +0000 Subject: [PATCH] Added a donate link to Help menu --- src/GUI.cpp | 10 ++++++++-- src/GUI.h | 1 + src/Icons/oxygen/emblem-favorite.png | Bin 0 -> 1901 bytes src/ui/mainwindow.ui | 15 ++++++++++++++- 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 src/Icons/oxygen/emblem-favorite.png diff --git a/src/GUI.cpp b/src/GUI.cpp index c0d507f82..f4b2ce67c 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -68,6 +68,7 @@ #include "hidabletabwidget.h" #include "qinisettings.h" #include "torrentimportdlg.h" +#include "rsssettings.h" #ifdef Q_WS_MAC #include "qmacapplication.h" void qt_mac_set_dock_menu(QMenu *menu); @@ -201,7 +202,7 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), for // View settings actionTop_tool_bar->setChecked(Preferences::isToolbarDisplayed()); actionSpeed_in_title_bar->setChecked(Preferences::speedInTitleBar()); - actionRSS_Reader->setChecked(Preferences::isRSSEnabled()); + actionRSS_Reader->setChecked(RssSettings::isRSSEnabled()); actionSearch_engine->setChecked(Preferences::isSearchEnabled()); displaySearchTab(actionSearch_engine->isChecked()); displayRSSTab(actionRSS_Reader->isChecked()); @@ -1190,7 +1191,7 @@ void GUI::on_actionSpeed_in_title_bar_triggered() { } void GUI::on_actionRSS_Reader_triggered() { - Preferences::setRSSEnabled(actionRSS_Reader->isChecked()); + RssSettings::setRSSEnabled(actionRSS_Reader->isChecked()); displayRSSTab(actionRSS_Reader->isChecked()); } @@ -1245,3 +1246,8 @@ void GUI::handleUpdateInstalled(QString error_msg) } #endif + +void GUI::on_actionDonate_money_triggered() +{ + QDesktopServices::openUrl(QUrl("https://sourceforge.net/donate/index.php?group_id=163414")); +} diff --git a/src/GUI.h b/src/GUI.h index ac7507cd2..b653f1dfd 100644 --- a/src/GUI.h +++ b/src/GUI.h @@ -189,6 +189,7 @@ private slots: void on_actionShutdown_when_downloads_complete_triggered(); void on_actionShutdown_qBittorrent_when_downloads_complete_triggered(); void on_action_Import_Torrent_triggered(); + void on_actionDonate_money_triggered(); }; #endif diff --git a/src/Icons/oxygen/emblem-favorite.png b/src/Icons/oxygen/emblem-favorite.png new file mode 100644 index 0000000000000000000000000000000000000000..e9c6e7d41b9d3a52f1a7dccc78ca2d3a59493f16 GIT binary patch literal 1901 zcmV-z2a@=SP)0%i3gZ03D|Sxq;l&{?TJeHAyuuJ)RZreZKcO;)F0q znj_U$KQlY5I;=u`n4qXp)cjo0S{U9C-e4an@&ppwzKczq1WrP4@q-&YK97$$>h8>P zX6a9kPI?!37a)#j?icMBz2ed_xPs9 zqt&AoS9Q6+qkKn+QMa18L);;(Qf?vSw~V+Z2cLYilqr}n}4 zml?Aevxw@6oy|L&y9(eoHy|P)LVaymyoI}ki+DGGtJzjFeU_RCa|?4r?DY@{MMA_o z;;6Z(Ih?z08K?`?A$}WSV`pQhKhiE+CSNAkCw9E&%5-It^(jKNP>pkgsnP-I0OCW( z_-*mq5FgnjOeak1FO7^Oy-s>f)=9#g!kmU%;mSToy`%o}c>kuginR*zp^1?Ckb2!K z)#Y_F>t+zUu7=7&Wr$aP4|x*u1o0a-=Nac2Vgp(|vU-Ht#@{&iIrs5x`&WL4{0<>@ z+r8iNehcEQ;}KC2QHVeJN5)3RBHr~9>%=;}-@R3m^^)~u-*fBEuRH(!Aeex=iT~u>k&I!HmWzO5qp|8J8X8)b^g%5X=u|BVymy) zg4=@P7f_bM8d&4(+R_3-5Kf6NW?9RuWn{s}_VM=dxc=+ScAa*eh&9PpPpzIJR(P7` znC2jUHfUaHUWr&;Z7;JY>+4t^(H_x=_0hgOUmoIVfnTj(En-XZYW`|IZol|r(8HjI zi0xBeCSE2p-<3;%gdYWGl|XYM4=SPZZ^LICsf5_@lW~@DmUewz30uq7k`ITP444ey zLP;d6gVljply9aoQz0s^*`BsNjrggTld+RA;?b?VPF^R@SG`@KT%km)t#W(q_FB8@ zl#pM^uOzd%g~mctKGf91)o?WcAb*c2AxZ!WEC~+5v93L74%=b-ll}F4!yupUCe9LP zb(hK}h-qRPu^@p+C(?1@<8GFmB}dH7FnwYA0`Z{2veL2==jCD6{nq_to!B5w|gm}B24>U)TshxNM$2U<80gkbO2~0-cF&7}n1r^tTB<721Gq48hw+&?j z^n*ot?O*~Xy6xE)fCVhXU0lPL`fvqho%@brL;mOz<^M&?1(b#7_G*CU;1)OmCm7%4 zHxi*lDD?}j1BH3R5YSYJsGS*9ZDGhqPf)vPq1=J;Y*0a};eoxq)Zki8$}}~Q_G@V* zEQO_rJNJP-*iYrU4~r7pk-W~ z27f`Y=vRafeIdjUnPQLUluiC?$izte4f=k#{6qRrUODgwWu^BX+9qP4Vc0qs(s^pJ zPXr9m=i9)*{G$CAP5frC>1BhL&OiWVhogq<_N7rAUB8mWp&S$pG~OR9I+jsGpUYTQ zblu{;m8RfI_jzu}HjDR6pBha3`G57`BxThXFk1is03v!+SaefwW^{L9a%BJjc-kv3 nFW1Y=%Pvk%EJ)SMFG>dhHrNJO5L3!r00000NkvXXu0mjfI%|;6 literal 0 HcmV?d00001 diff --git a/src/ui/mainwindow.ui b/src/ui/mainwindow.ui index 673a11273..f280a2f7b 100644 --- a/src/ui/mainwindow.ui +++ b/src/ui/mainwindow.ui @@ -29,7 +29,7 @@ 0 0 914 - 21 + 25 @@ -54,6 +54,7 @@ + @@ -373,6 +374,18 @@ Import torrent... + + + + :/Icons/oxygen/emblem-favorite.png:/Icons/oxygen/emblem-favorite.png + + + Donate money + + + If you like qBittorrent, please donate! + +