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) @@ -133,7 +133,6 @@ MainWindow::MainWindow(QWidget *parent)
actionCreate_torrent->setIcon(GuiIconProvider::instance()->getIcon("document-edit"));
actionAbout->setIcon(GuiIconProvider::instance()->getIcon("help-about"));
actionStatistics->setIcon(GuiIconProvider::instance()->getIcon("view-statistics"));
actionBugReport->setIcon(GuiIconProvider::instance()->getIcon("tools-report-bug"));
actionDecreasePriority->setIcon(GuiIconProvider::instance()->getIcon("go-down"));
actionBottomPriority->setIcon(GuiIconProvider::instance()->getIcon("go-bottom"));
actionDelete->setIcon(GuiIconProvider::instance()->getIcon("list-remove"));
@ -537,21 +536,11 @@ void MainWindow::updateNbTorrents() @@ -537,21 +536,11 @@ void MainWindow::updateNbTorrents()
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
{
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)
{
Q_UNUSED(new_tab);

2
src/gui/mainwindow.h

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

17
src/gui/mainwindow.ui

@ -51,9 +51,6 @@ @@ -51,9 +51,6 @@
<string>&amp;Help</string>
</property>
<addaction name="actionDocumentation"/>
<addaction name="actionWebsite"/>
<addaction name="actionBugReport"/>
<addaction name="separator"/>
<addaction name="actionCheck_for_updates"/>
<addaction name="separator"/>
<addaction name="actionDonate_money"/>
@ -198,15 +195,6 @@ @@ -198,15 +195,6 @@
<string>Delete</string>
</property>
</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">
<property name="text">
<string>Add Torrent &amp;Link...</string>
@ -220,11 +208,6 @@ @@ -220,11 +208,6 @@
<string>Torrent &amp;Creator</string>
</property>
</action>
<action name="actionBugReport">
<property name="text">
<string>Report a &amp;Bug</string>
</property>
</action>
<action name="actionSet_upload_limit">
<property name="text">
<string>Set Upload Limit...</string>

Loading…
Cancel
Save