Browse Source

Added a donate link to Help menu

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
1638554944
  1. 10
      src/GUI.cpp
  2. 1
      src/GUI.h
  3. BIN
      src/Icons/oxygen/emblem-favorite.png
  4. 15
      src/ui/mainwindow.ui

10
src/GUI.cpp

@ -68,6 +68,7 @@ @@ -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 @@ -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() { @@ -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) @@ -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"));
}

1
src/GUI.h

@ -189,6 +189,7 @@ private slots: @@ -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

BIN
src/Icons/oxygen/emblem-favorite.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

15
src/ui/mainwindow.ui

@ -29,7 +29,7 @@ @@ -29,7 +29,7 @@
<x>0</x>
<y>0</y>
<width>914</width>
<height>21</height>
<height>25</height>
</rect>
</property>
<widget class="QMenu" name="menu_Edit">
@ -54,6 +54,7 @@ @@ -54,6 +54,7 @@
<addaction name="actionBugReport"/>
<addaction name="actionWebsite"/>
<addaction name="actionDocumentation"/>
<addaction name="actionDonate_money"/>
<addaction name="actionAbout"/>
</widget>
<widget class="QMenu" name="menu_Options">
@ -373,6 +374,18 @@ @@ -373,6 +374,18 @@
<string>Import torrent...</string>
</property>
</action>
<action name="actionDonate_money">
<property name="icon">
<iconset resource="../icons.qrc">
<normaloff>:/Icons/oxygen/emblem-favorite.png</normaloff>:/Icons/oxygen/emblem-favorite.png</iconset>
</property>
<property name="text">
<string>Donate money</string>
</property>
<property name="toolTip">
<string>If you like qBittorrent, please donate!</string>
</property>
</action>
</widget>
<resources>
<include location="../icons.qrc"/>

Loading…
Cancel
Save