From 518372394da1f58da8e69acbb981a97db375e739 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 21 Feb 2008 14:01:40 +0000 Subject: * Install an event-filter for the view implementations. Whenever a view implementation gets the focus, it should request it's activation. * Let the metadata widget only get the focus by clicking. * Tried to install a similar filter for the wheel-event code duplication in the view-implementations, but the event filter is invoked _after_ the view implementation gets the wheel event... -> added a note the the 3 implementations as hint. svn path=/trunk/KDE/kdebase/apps/; revision=777757 --- src/dolphincolumnwidget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/dolphincolumnwidget.cpp') diff --git a/src/dolphincolumnwidget.cpp b/src/dolphincolumnwidget.cpp index ca4db00c7..b1050afda 100644 --- a/src/dolphincolumnwidget.cpp +++ b/src/dolphincolumnwidget.cpp @@ -346,7 +346,7 @@ void DolphinColumnWidget::mousePressEvent(QMouseEvent* event) void DolphinColumnWidget::keyPressEvent(QKeyEvent* event) { QListView::keyPressEvent(event); - Q_ASSERT(m_view->m_controller->itemView() == this); + requestActivation(); m_view->m_controller->handleKeyPressEvent(event); } @@ -373,7 +373,8 @@ void DolphinColumnWidget::contextMenuEvent(QContextMenuEvent* event) void DolphinColumnWidget::wheelEvent(QWheelEvent* event) { // let Ctrl+wheel events propagate to the DolphinView for icon zooming - if ((event->modifiers() & Qt::ControlModifier) == Qt::ControlModifier) { + // (installing an event filter does not work, as the wheel event is handled first) + if (event->modifiers() & Qt::ControlModifier) { event->ignore(); return; } -- cgit v1.3