From a6b037d66374915a1f12e39891af9986fa828265 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 20 Jul 2007 12:39:20 +0000 Subject: [PATCH] - Fixed last commit --- src/GUI.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index fc567a412..c82e5c634 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -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(){ 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