mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Show the connection settings when clicking on the connection status icon
This commit is contained in:
parent
8597689a52
commit
34cb5efb72
5 changed files with 26 additions and 8 deletions
|
@ -193,6 +193,7 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), for
|
|||
createKeyboardShortcuts();
|
||||
// Create status bar
|
||||
status_bar = new StatusBar(QMainWindow::statusBar(), BTSession);
|
||||
connect(status_bar->connectionStatusButton(), SIGNAL(clicked()), SLOT(showConnectionSettings()));
|
||||
connect(actionUse_alternative_speed_limits, SIGNAL(triggered()), status_bar, SLOT(toggleAlternativeSpeeds()));
|
||||
|
||||
#ifdef Q_WS_MAC
|
||||
|
@ -1254,5 +1255,11 @@ void GUI::handleUpdateInstalled(QString error_msg)
|
|||
|
||||
void GUI::on_actionDonate_money_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("http://sourceforge.net/donate/index.php?group_id=163414"));
|
||||
QDesktopServices::openUrl(QUrl("http://sourceforge.net/donate/index.php?group_id=163414"));
|
||||
}
|
||||
|
||||
void GUI::showConnectionSettings()
|
||||
{
|
||||
on_actionOptions_triggered();
|
||||
options->showConnectionTab();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue