mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
- Added keyboard shortcuts for main actions (thanks Alexander Kuzmenkov)
This commit is contained in:
parent
38c6c63924
commit
99959b1aa3
4 changed files with 107 additions and 12 deletions
23
src/GUI.h
23
src/GUI.h
|
@ -53,6 +53,7 @@ class QTcpServer;
|
|||
class QTcpSocket;
|
||||
class QCloseEvent;
|
||||
class RSSImp;
|
||||
class QShortcut;
|
||||
|
||||
using namespace libtorrent;
|
||||
namespace fs = boost::filesystem;
|
||||
|
@ -86,6 +87,22 @@ class GUI : public QMainWindow, private Ui::MainWindow{
|
|||
bool delayedSorting;
|
||||
Qt::SortOrder delayedSortingOrder;
|
||||
QMutex DLListAccess;
|
||||
// Keyboard shortcuts
|
||||
QShortcut *createShortcut;
|
||||
QShortcut *openShortcut;
|
||||
QShortcut *quitShortcut;
|
||||
QShortcut *switchSearchShortcut;
|
||||
QShortcut *switchDownShortcut;
|
||||
QShortcut *switchUpShortcut;
|
||||
QShortcut *switchRSSShortcut;
|
||||
QShortcut *propertiesShortcut;
|
||||
QShortcut *optionsShortcut;
|
||||
QShortcut *delShortcut;
|
||||
QShortcut *delPermShortcut;
|
||||
QShortcut *startShortcut;
|
||||
QShortcut *startAllShortcut;
|
||||
QShortcut *pauseShortcut;
|
||||
QShortcut *pauseAllPermShortcut;
|
||||
// Preview
|
||||
previewSelect *previewSelection;
|
||||
QProcess *previewProcess;
|
||||
|
@ -130,6 +147,12 @@ class GUI : public QMainWindow, private Ui::MainWindow{
|
|||
void on_actionExit_triggered();
|
||||
void createTrayIcon();
|
||||
void addLogPeerBlocked(const QString&);
|
||||
// Keyboard shortcuts
|
||||
void createKeyboardShortcuts();
|
||||
void displayDownTab();
|
||||
void displayUpTab();
|
||||
void displaySearchTab();
|
||||
void displayRSSTab();
|
||||
// Torrent actions
|
||||
void showProperties(const QModelIndex &index);
|
||||
void on_actionTorrent_Properties_triggered();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue