summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-07 20:40:15 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-07 20:40:15 +0200
commit02985e3b566f03a4cfda74e6c6369cdda2a6a8b0 (patch)
treeffd10d0f09636a33459b43883724d925780b3378
parentAdded CTRL + N shortcut to open new tab action. As new window doesn't exist a... (diff)
downloadrekonq-02985e3b566f03a4cfda74e6c6369cdda2a6a8b0.tar.xz
Fixed new tab QKeySequence
-rw-r--r--src/mainwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index dd89d679..21ceb8ee 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -261,7 +261,10 @@ void MainWindow::setupActions()
// =================== Tab Actions
a = new KAction(KIcon("tab-new"), i18n("New &Tab"), this);
- a->setShortcut(KShortcut(Qt::CTRL + Qt::Key_N, Qt::CTRL + Qt::SHIFT + Qt::Key_N, Qt::CTRL + Qt::Key_T));
+ QList<QKeySequence> newTabShortcutList;
+ newTabShortcutList << QKeySequence(QKeySequence::New);
+ newTabShortcutList << QKeySequence(QKeySequence::AddTab);
+ a->setShortcut(KShortcut(newTabShortcutList));
actionCollection()->addAction(QLatin1String("new_tab"), a);
connect(a, SIGNAL(triggered(bool)), m_view, SLOT(newWebView()));