┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphindetailsview.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/dolphindetailsview.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/dolphindetailsview.cpp')
-rw-r--r--src/dolphindetailsview.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp
index b17164d8b..c8c419f02 100644
--- a/src/dolphindetailsview.cpp
+++ b/src/dolphindetailsview.cpp
@@ -386,9 +386,10 @@ void DolphinDetailsView::resizeEvent(QResizeEvent* event)
void DolphinDetailsView::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;
+ return;
}
QTreeView::wheelEvent(event);
}