Browse Source

- Fixed last commit

adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
a6b037d663
  1. 22
      src/GUI.cpp

22
src/GUI.cpp

@ -249,9 +249,9 @@ void GUI::writeSettings() {
} }
void GUI::createKeyboardShortcuts(){ void GUI::createKeyboardShortcuts(){
actionCreate_torrent->setShortcut("Ctrl+N"); actionCreate_torrent->setShortcut(QKeySequence("Ctrl+N"));
actionOpen->setShortcut("Ctrl+O"); actionOpen->setShortcut(QKeySequence("Ctrl+O"));
actionExit->setShortcut("Ctrl+Q"); actionExit->setShortcut(QKeySequence("Ctrl+Q"));
switchDownShortcut = new QShortcut(QKeySequence(tr("Alt+1", "shortcut to switch to first tab")), this); switchDownShortcut = new QShortcut(QKeySequence(tr("Alt+1", "shortcut to switch to first tab")), this);
connect(switchDownShortcut, SIGNAL(activated()), this, SLOT(displayDownTab())); connect(switchDownShortcut, SIGNAL(activated()), this, SLOT(displayDownTab()));
switchUpShortcut = new QShortcut(QKeySequence(tr("Alt+2", "shortcut to switch to second tab")), this); switchUpShortcut = new QShortcut(QKeySequence(tr("Alt+2", "shortcut to switch to second tab")), this);
@ -260,14 +260,14 @@ void GUI::createKeyboardShortcuts(){
connect(switchSearchShortcut, SIGNAL(activated()), this, SLOT(displaySearchTab())); connect(switchSearchShortcut, SIGNAL(activated()), this, SLOT(displaySearchTab()));
switchRSSShortcut = new QShortcut(QKeySequence(tr("Alt+4", "shortcut to switch to fourth tab")), this); switchRSSShortcut = new QShortcut(QKeySequence(tr("Alt+4", "shortcut to switch to fourth tab")), this);
connect(switchRSSShortcut, SIGNAL(activated()), this, SLOT(displayRSSTab())); connect(switchRSSShortcut, SIGNAL(activated()), this, SLOT(displayRSSTab()));
actionTorrent_Properties->setShortcut("Alt+P"); actionTorrent_Properties->setShortcut(QKeySequence("Alt+P"));
actionOptions->setShortcut("Alt+O"); actionOptions->setShortcut(QKeySequence("Alt+O"));
actionDelete->setShortcut("Del"); actionDelete->setShortcut(QKeySequence("Del"));
actionDelete_Permanently->setShortcut("Shift+Del"); actionDelete_Permanently->setShortcut(QKeySequence("Shift+Del"));
actionStart->setShortcut("Ctrl+S"); actionStart->setShortcut(QKeySequence("Ctrl+S"));
actionStart_All->setShortcut("Ctrl+Shift+S"); actionStart_All->setShortcut(QKeySequence("Ctrl+Shift+S"));
actionPause->setShortcut("Ctrl+P") actionPause->setShortcut(QKeySequence("Ctrl+P"));
actionPause_All->setShortcut("Ctrl+Shift+P"); actionPause_All->setShortcut(QKeySequence("Ctrl+Shift+P"));
} }
// Keyboard shortcuts slots // Keyboard shortcuts slots

Loading…
Cancel
Save