Browse Source

Remove menu items: "Visit Website" and "Report a Bug".

Many issues opened on github should be asked on forum first, and the links are already present in "About" window.
adaptive-webui-19844
Chocobo1 10 years ago
parent
commit
ade1936f9c
  1. 11
      src/gui/mainwindow.cpp
  2. 2
      src/gui/mainwindow.h
  3. 17
      src/gui/mainwindow.ui

11
src/gui/mainwindow.cpp

@ -133,7 +133,6 @@ MainWindow::MainWindow(QWidget *parent)
actionCreate_torrent->setIcon(GuiIconProvider::instance()->getIcon("document-edit")); actionCreate_torrent->setIcon(GuiIconProvider::instance()->getIcon("document-edit"));
actionAbout->setIcon(GuiIconProvider::instance()->getIcon("help-about")); actionAbout->setIcon(GuiIconProvider::instance()->getIcon("help-about"));
actionStatistics->setIcon(GuiIconProvider::instance()->getIcon("view-statistics")); actionStatistics->setIcon(GuiIconProvider::instance()->getIcon("view-statistics"));
actionBugReport->setIcon(GuiIconProvider::instance()->getIcon("tools-report-bug"));
actionDecreasePriority->setIcon(GuiIconProvider::instance()->getIcon("go-down")); actionDecreasePriority->setIcon(GuiIconProvider::instance()->getIcon("go-down"));
actionBottomPriority->setIcon(GuiIconProvider::instance()->getIcon("go-bottom")); actionBottomPriority->setIcon(GuiIconProvider::instance()->getIcon("go-bottom"));
actionDelete->setIcon(GuiIconProvider::instance()->getIcon("list-remove")); actionDelete->setIcon(GuiIconProvider::instance()->getIcon("list-remove"));
@ -537,21 +536,11 @@ void MainWindow::updateNbTorrents()
tabs->setTabText(0, tr("Transfers (%1)").arg(transferList->getSourceModel()->rowCount())); tabs->setTabText(0, tr("Transfers (%1)").arg(transferList->getSourceModel()->rowCount()));
} }
void MainWindow::on_actionWebsite_triggered() const
{
QDesktopServices::openUrl(QUrl(QString::fromUtf8("http://www.qbittorrent.org")));
}
void MainWindow::on_actionDocumentation_triggered() const void MainWindow::on_actionDocumentation_triggered() const
{ {
QDesktopServices::openUrl(QUrl(QString::fromUtf8("http://doc.qbittorrent.org"))); QDesktopServices::openUrl(QUrl(QString::fromUtf8("http://doc.qbittorrent.org")));
} }
void MainWindow::on_actionBugReport_triggered() const
{
QDesktopServices::openUrl(QUrl(QString::fromUtf8("http://bugs.qbittorrent.org")));
}
void MainWindow::tab_changed(int new_tab) void MainWindow::tab_changed(int new_tab)
{ {
Q_UNUSED(new_tab); Q_UNUSED(new_tab);

2
src/gui/mainwindow.h

@ -97,8 +97,6 @@ protected slots:
void on_actionAbout_triggered(); void on_actionAbout_triggered();
void on_actionStatistics_triggered(); void on_actionStatistics_triggered();
void on_actionCreate_torrent_triggered(); void on_actionCreate_torrent_triggered();
void on_actionWebsite_triggered() const;
void on_actionBugReport_triggered() const;
void balloonClicked(); void balloonClicked();
void writeSettings(); void writeSettings();
void readSettings(); void readSettings();

17
src/gui/mainwindow.ui

@ -51,9 +51,6 @@
<string>&amp;Help</string> <string>&amp;Help</string>
</property> </property>
<addaction name="actionDocumentation"/> <addaction name="actionDocumentation"/>
<addaction name="actionWebsite"/>
<addaction name="actionBugReport"/>
<addaction name="separator"/>
<addaction name="actionCheck_for_updates"/> <addaction name="actionCheck_for_updates"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionDonate_money"/> <addaction name="actionDonate_money"/>
@ -198,15 +195,6 @@
<string>Delete</string> <string>Delete</string>
</property> </property>
</action> </action>
<action name="actionWebsite">
<property name="icon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/skin/qbittorrent32.png</normaloff>:/icons/skin/qbittorrent32.png</iconset>
</property>
<property name="text">
<string>Visit &amp;Website</string>
</property>
</action>
<action name="actionDownload_from_URL"> <action name="actionDownload_from_URL">
<property name="text"> <property name="text">
<string>Add Torrent &amp;Link...</string> <string>Add Torrent &amp;Link...</string>
@ -220,11 +208,6 @@
<string>Torrent &amp;Creator</string> <string>Torrent &amp;Creator</string>
</property> </property>
</action> </action>
<action name="actionBugReport">
<property name="text">
<string>Report a &amp;Bug</string>
</property>
</action>
<action name="actionSet_upload_limit"> <action name="actionSet_upload_limit">
<property name="text"> <property name="text">
<string>Set Upload Limit...</string> <string>Set Upload Limit...</string>

Loading…
Cancel
Save