From beddee8dd4121510423b26e33e25286bf6027d78 Mon Sep 17 00:00:00 2001 From: thalieht Date: Wed, 25 Jan 2017 10:42:32 +0200 Subject: [PATCH] Transferlist: add hotkeys for double click and recheck selected torrents --- src/gui/transferlistwidget.cpp | 2 ++ src/gui/transferlistwidget.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/gui/transferlistwidget.cpp b/src/gui/transferlistwidget.cpp index 0497843a4..f25361d70 100644 --- a/src/gui/transferlistwidget.cpp +++ b/src/gui/transferlistwidget.cpp @@ -158,6 +158,8 @@ TransferListWidget::TransferListWidget(QWidget *parent, MainWindow *main_window) editHotkey = new QShortcut(QKeySequence("F2"), this, SLOT(renameSelectedTorrent()), 0, Qt::WidgetShortcut); deleteHotkey = new QShortcut(QKeySequence::Delete, this, SLOT(softDeleteSelectedTorrents()), 0, Qt::WidgetShortcut); permDeleteHotkey = new QShortcut(QKeySequence("Shift+Delete"), this, SLOT(permDeleteSelectedTorrents()), 0, Qt::WidgetShortcut); + doubleClickHotkey = new QShortcut(QKeySequence(Qt::Key_Return), this, SLOT(torrentDoubleClicked()), 0, Qt::WidgetShortcut); + recheckHotkey = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_R), this, SLOT(recheckSelectedTorrents()), 0, Qt::WidgetShortcut); #ifdef QBT_USES_QT5 // This hack fixes reordering of first column with Qt5. diff --git a/src/gui/transferlistwidget.h b/src/gui/transferlistwidget.h index 6c686e66d..f2c217b28 100644 --- a/src/gui/transferlistwidget.h +++ b/src/gui/transferlistwidget.h @@ -124,6 +124,8 @@ private: QShortcut *editHotkey; QShortcut *deleteHotkey; QShortcut *permDeleteHotkey; + QShortcut *doubleClickHotkey; + QShortcut *recheckHotkey; }; #endif // TRANSFERLISTWIDGET_H