mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
show delete accelerator key in menu. closes #7508
This commit is contained in:
parent
bd1d775ca9
commit
1378245a63
@ -839,6 +839,7 @@ void MainWindow::createKeyboardShortcuts()
|
|||||||
{
|
{
|
||||||
m_ui->actionCreateTorrent->setShortcut(QKeySequence::New);
|
m_ui->actionCreateTorrent->setShortcut(QKeySequence::New);
|
||||||
m_ui->actionOpen->setShortcut(QKeySequence::Open);
|
m_ui->actionOpen->setShortcut(QKeySequence::Open);
|
||||||
|
m_ui->actionDelete->setShortcut(QKeySequence::Delete);
|
||||||
m_ui->actionDownloadFromURL->setShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_O);
|
m_ui->actionDownloadFromURL->setShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_O);
|
||||||
m_ui->actionExit->setShortcut(Qt::CTRL + Qt::Key_Q);
|
m_ui->actionExit->setShortcut(Qt::CTRL + Qt::Key_Q);
|
||||||
|
|
||||||
|
@ -285,7 +285,6 @@ TransferListWidget::TransferListWidget(QWidget *parent, MainWindow *mainWindow)
|
|||||||
connect(header(), SIGNAL(sortIndicatorChanged(int, Qt::SortOrder)), this, SLOT(saveSettings()));
|
connect(header(), SIGNAL(sortIndicatorChanged(int, Qt::SortOrder)), this, SLOT(saveSettings()));
|
||||||
|
|
||||||
m_editHotkey = new QShortcut(Qt::Key_F2, this, SLOT(renameSelectedTorrent()), 0, Qt::WidgetShortcut);
|
m_editHotkey = new QShortcut(Qt::Key_F2, this, SLOT(renameSelectedTorrent()), 0, Qt::WidgetShortcut);
|
||||||
m_deleteHotkey = new QShortcut(QKeySequence::Delete, this, SLOT(softDeleteSelectedTorrents()), 0, Qt::WidgetShortcut);
|
|
||||||
m_permDeleteHotkey = new QShortcut(Qt::SHIFT + Qt::Key_Delete, this, SLOT(permDeleteSelectedTorrents()), 0, Qt::WidgetShortcut);
|
m_permDeleteHotkey = new QShortcut(Qt::SHIFT + Qt::Key_Delete, this, SLOT(permDeleteSelectedTorrents()), 0, Qt::WidgetShortcut);
|
||||||
m_doubleClickHotkey = new QShortcut(Qt::Key_Return, this, SLOT(torrentDoubleClicked()), 0, Qt::WidgetShortcut);
|
m_doubleClickHotkey = new QShortcut(Qt::Key_Return, this, SLOT(torrentDoubleClicked()), 0, Qt::WidgetShortcut);
|
||||||
m_recheckHotkey = new QShortcut(Qt::CTRL + Qt::Key_R, this, SLOT(recheckSelectedTorrents()), 0, Qt::WidgetShortcut);
|
m_recheckHotkey = new QShortcut(Qt::CTRL + Qt::Key_R, this, SLOT(recheckSelectedTorrents()), 0, Qt::WidgetShortcut);
|
||||||
|
@ -132,7 +132,6 @@ private:
|
|||||||
TransferListSortModel *m_sortFilterModel;
|
TransferListSortModel *m_sortFilterModel;
|
||||||
MainWindow *m_mainWindow;
|
MainWindow *m_mainWindow;
|
||||||
QShortcut *m_editHotkey;
|
QShortcut *m_editHotkey;
|
||||||
QShortcut *m_deleteHotkey;
|
|
||||||
QShortcut *m_permDeleteHotkey;
|
QShortcut *m_permDeleteHotkey;
|
||||||
QShortcut *m_doubleClickHotkey;
|
QShortcut *m_doubleClickHotkey;
|
||||||
QShortcut *m_recheckHotkey;
|
QShortcut *m_recheckHotkey;
|
||||||
|
Loading…
Reference in New Issue
Block a user