mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-12 15:57:57 +00:00
add hotkey for execution log tab
This commit is contained in:
parent
beddee8dd4
commit
0fdd3e23ff
@ -767,6 +767,8 @@ void MainWindow::createKeyboardShortcuts()
|
||||
connect(switchSearchShortcut, SIGNAL(activated()), this, SLOT(displaySearchTab()));
|
||||
QShortcut *switchRSSShortcut = new QShortcut(QKeySequence("Alt+3"), this);
|
||||
connect(switchRSSShortcut, SIGNAL(activated()), this, SLOT(displayRSSTab()));
|
||||
QShortcut *switchExecutionLogShortcut = new QShortcut(QKeySequence(Qt::ALT + Qt::Key_4), this);
|
||||
connect(switchExecutionLogShortcut, SIGNAL(activated()), this, SLOT(displayExecutionLogTab()));
|
||||
|
||||
QShortcut *switchSearchFilterShortcut = new QShortcut(QKeySequence::Find, this);
|
||||
connect(switchSearchFilterShortcut, SIGNAL(activated()), this, SLOT(focusSearchFilter()));
|
||||
@ -805,6 +807,12 @@ void MainWindow::displayRSSTab() const
|
||||
m_tabs->setCurrentWidget(m_rssWidget);
|
||||
}
|
||||
|
||||
void MainWindow::displayExecutionLogTab() const
|
||||
{
|
||||
if (m_executionLog)
|
||||
m_tabs->setCurrentWidget(m_executionLog);
|
||||
}
|
||||
|
||||
// End of keyboard shortcuts slots
|
||||
|
||||
void MainWindow::askRecursiveTorrentDownloadConfirmation(BitTorrent::TorrentHandle *const torrent)
|
||||
|
@ -126,6 +126,7 @@ private slots:
|
||||
void displayTransferTab() const;
|
||||
void displaySearchTab() const;
|
||||
void displayRSSTab() const;
|
||||
void displayExecutionLogTab() const;
|
||||
void focusSearchFilter();
|
||||
void updateGUI();
|
||||
void loadPreferences(bool configureSession = true);
|
||||
|
Loading…
Reference in New Issue
Block a user