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

Loading…
Cancel
Save