|
|
@ -634,6 +634,12 @@ void MainWindow::displaySearchTab(bool enable) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::focusSearchFilter() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
m_searchFilter->setFocus(); |
|
|
|
|
|
|
|
m_searchFilter->selectAll(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::updateNbTorrents() |
|
|
|
void MainWindow::updateNbTorrents() |
|
|
|
{ |
|
|
|
{ |
|
|
|
m_tabs->setTabText(0, tr("Transfers (%1)").arg(m_transferListWidget->getSourceModel()->rowCount())); |
|
|
|
m_tabs->setTabText(0, tr("Transfers (%1)").arg(m_transferListWidget->getSourceModel()->rowCount())); |
|
|
@ -759,11 +765,12 @@ void MainWindow::createKeyboardShortcuts() |
|
|
|
connect(switchTransferShortcut, SIGNAL(activated()), this, SLOT(displayTransferTab())); |
|
|
|
connect(switchTransferShortcut, SIGNAL(activated()), this, SLOT(displayTransferTab())); |
|
|
|
QShortcut *switchSearchShortcut = new QShortcut(QKeySequence("Alt+2"), this); |
|
|
|
QShortcut *switchSearchShortcut = new QShortcut(QKeySequence("Alt+2"), this); |
|
|
|
connect(switchSearchShortcut, SIGNAL(activated()), this, SLOT(displaySearchTab())); |
|
|
|
connect(switchSearchShortcut, SIGNAL(activated()), this, SLOT(displaySearchTab())); |
|
|
|
QShortcut *switchSearchShortcut2 = new QShortcut(QKeySequence::Find, this); |
|
|
|
|
|
|
|
connect(switchSearchShortcut2, 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 *switchSearchFilterShortcut = new QShortcut(QKeySequence::Find, this); |
|
|
|
|
|
|
|
connect(switchSearchFilterShortcut, SIGNAL(activated()), this, SLOT(focusSearchFilter())); |
|
|
|
|
|
|
|
|
|
|
|
m_ui->actionDocumentation->setShortcut(QKeySequence::HelpContents); |
|
|
|
m_ui->actionDocumentation->setShortcut(QKeySequence::HelpContents); |
|
|
|
m_ui->actionOptions->setShortcut(QKeySequence("Alt+O")); |
|
|
|
m_ui->actionOptions->setShortcut(QKeySequence("Alt+O")); |
|
|
|
m_ui->actionStart->setShortcut(QKeySequence("Ctrl+S")); |
|
|
|
m_ui->actionStart->setShortcut(QKeySequence("Ctrl+S")); |
|
|
|