diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-04-07 20:40:15 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-04-07 20:40:15 +0200 |
commit | 02985e3b566f03a4cfda74e6c6369cdda2a6a8b0 (patch) | |
tree | ffd10d0f09636a33459b43883724d925780b3378 | |
parent | Added CTRL + N shortcut to open new tab action. As new window doesn't exist a... (diff) | |
download | rekonq-02985e3b566f03a4cfda74e6c6369cdda2a6a8b0.tar.xz |
Fixed new tab QKeySequence
-rw-r--r-- | src/mainwindow.cpp | 5 |
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())); |