┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincolumnwidget.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-02-21 14:01:40 +0000
committerPeter Penz <[email protected]>2008-02-21 14:01:40 +0000
commit518372394da1f58da8e69acbb981a97db375e739 (patch)
tree3f0b0fb6449a23ed8369a84bdb4c5485e027c281 /src/dolphincolumnwidget.cpp
parentb34ed68daf1923eacc9330ec49088fc24a56a415 (diff)
* 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
Diffstat (limited to 'src/dolphincolumnwidget.cpp')
-rw-r--r--src/dolphincolumnwidget.cpp5
1 files changed, 3 insertions, 2 deletions
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;
}