From 2735f78f51022f699b42b374317f97925a7ebdea Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Sun, 8 Aug 2010 19:57:11 +0000 Subject: [PATCH] block events in AppletOverlayWidget::mousePressEvent svn path=/trunk/KDE/kdelibs/; revision=1160687 --- applet.cpp | 5 +++++ private/applet_p.h | 1 + 2 files changed, 6 insertions(+) diff --git a/applet.cpp b/applet.cpp index 167f7139c..80b93dfda 100644 --- a/applet.cpp +++ b/applet.cpp @@ -2851,6 +2851,11 @@ void AppletOverlayWidget::destroy() } } +void AppletOverlayWidget::mousePressEvent(QGraphicsSceneMouseEvent *event) +{ + event->accept(); +} + void AppletOverlayWidget::overlayAnimationComplete() { if (scene()) { diff --git a/private/applet_p.h b/private/applet_p.h index 252f8b5c2..41a8745bc 100644 --- a/private/applet_p.h +++ b/private/applet_p.h @@ -88,6 +88,7 @@ public: protected: void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); + void mousePressEvent(QGraphicsSceneMouseEvent *event); protected Q_SLOTS: void overlayAnimationComplete();