mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 23:07:59 +00:00
Added a donate link to Help menu
This commit is contained in:
parent
1d1b49205d
commit
1638554944
10
src/GUI.cpp
10
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"));
|
||||
}
|
||||
|
@ -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
Normal file
BIN
src/Icons/oxygen/emblem-favorite.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
@ -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 @@
|
||||
<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 @@
|
||||
<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…
Reference in New Issue
Block a user