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/dolphinview.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index af0dd62a2..4f2964761 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -75,11 +75,11 @@ class LIBDOLPHINPRIVATE_EXPORT DolphinView : public QWidget public: /** - * Defines the view mode for a directory. The view mode - * can be defined when constructing a DolphinView. The - * view mode is automatically updated if the directory itself - * defines a view mode (see class ViewProperties for details). - */ + * Defines the view mode for a directory. The view mode + * can be defined when constructing a DolphinView. The + * view mode is automatically updated if the directory itself + * defines a view mode (see class ViewProperties for details). + */ enum Mode { /** @@ -489,6 +489,7 @@ protected: /** @see QWidget::mouseReleaseEvent */ virtual void mouseReleaseEvent(QMouseEvent* event); virtual void wheelEvent(QWheelEvent* event); + virtual bool eventFilter(QObject* watched, QEvent* event); private slots: /** -- cgit v1.3