add hotkey for execution log tab

This commit is contained in:
thalieht 2017-01-25 10:54:10 +02:00
parent beddee8dd4
commit 0fdd3e23ff
2 changed files with 9 additions and 0 deletions

View file

@ -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)

View file

@ -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);