Browse Source

add hotkey for execution log tab

adaptive-webui-19844
thalieht 8 years ago
parent
commit
0fdd3e23ff
  1. 8
      src/gui/mainwindow.cpp
  2. 1
      src/gui/mainwindow.h

8
src/gui/mainwindow.cpp

@ -767,6 +767,8 @@ void MainWindow::createKeyboardShortcuts()
connect(switchSearchShortcut, SIGNAL(activated()), this, SLOT(displaySearchTab())); connect(switchSearchShortcut, SIGNAL(activated()), this, SLOT(displaySearchTab()));
QShortcut *switchRSSShortcut = new QShortcut(QKeySequence("Alt+3"), this); QShortcut *switchRSSShortcut = new QShortcut(QKeySequence("Alt+3"), this);
connect(switchRSSShortcut, SIGNAL(activated()), this, SLOT(displayRSSTab())); 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); QShortcut *switchSearchFilterShortcut = new QShortcut(QKeySequence::Find, this);
connect(switchSearchFilterShortcut, SIGNAL(activated()), this, SLOT(focusSearchFilter())); connect(switchSearchFilterShortcut, SIGNAL(activated()), this, SLOT(focusSearchFilter()));
@ -805,6 +807,12 @@ void MainWindow::displayRSSTab() const
m_tabs->setCurrentWidget(m_rssWidget); m_tabs->setCurrentWidget(m_rssWidget);
} }
void MainWindow::displayExecutionLogTab() const
{
if (m_executionLog)
m_tabs->setCurrentWidget(m_executionLog);
}
// End of keyboard shortcuts slots // End of keyboard shortcuts slots
void MainWindow::askRecursiveTorrentDownloadConfirmation(BitTorrent::TorrentHandle *const torrent) void MainWindow::askRecursiveTorrentDownloadConfirmation(BitTorrent::TorrentHandle *const torrent)

1
src/gui/mainwindow.h

@ -126,6 +126,7 @@ private slots:
void displayTransferTab() const; void displayTransferTab() const;
void displaySearchTab() const; void displaySearchTab() const;
void displayRSSTab() const; void displayRSSTab() const;
void displayExecutionLogTab() const;
void focusSearchFilter(); void focusSearchFilter();
void updateGUI(); void updateGUI();
void loadPreferences(bool configureSession = true); void loadPreferences(bool configureSession = true);

Loading…
Cancel
Save