From b72b81dbd55d8176b1ba81dce11f0e155645c996 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 25 Jan 2012 23:00:27 +0100 Subject: accept CTRL + TAB events --- src/mainwindow.cpp | 3 +++ src/urlbar/urlresolver.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 16f1e92a..9cd56daa 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1173,6 +1173,7 @@ void MainWindow::keyPressEvent(QKeyEvent *event) if ((event->modifiers() == Qt::ControlModifier) && (event->key() == Qt::Key_Tab)) { emit ctrlTabPressed(); + event->accept(); return; } @@ -1180,6 +1181,7 @@ void MainWindow::keyPressEvent(QKeyEvent *event) if ((event->modifiers() == Qt::ControlModifier + Qt::ShiftModifier) && (event->key() == Qt::Key_Backtab)) { emit shiftCtrlTabPressed(); + event->accept(); return; } @@ -1214,6 +1216,7 @@ bool MainWindow::event(QEvent *event) } } } + return KMainWindow::event(event); } diff --git a/src/urlbar/urlresolver.h b/src/urlbar/urlresolver.h index 4608b103..57b3e11e 100644 --- a/src/urlbar/urlresolver.h +++ b/src/urlbar/urlresolver.h @@ -68,7 +68,7 @@ public: int image_height; QString bookmarkPath; - UrlSearchItem(const UrlSearchItem &item) + UrlSearchItem(const UrlSearchItem &item) : type(item.type) , url(item.url) , title(item.title) @@ -78,7 +78,7 @@ public: , image_height(item.image_height) {}; - UrlSearchItem() + UrlSearchItem() : type(UrlSearchItem::Undefined) , url(QString()) , title(QString()) -- cgit v1.2.1