block events in AppletOverlayWidget::mousePressEvent

svn path=/trunk/KDE/kdelibs/; revision=1160687
This commit is contained in:
Marco Martin 2010-08-08 19:57:11 +00:00
parent 9f4a2e8ee5
commit 2735f78f51
2 changed files with 6 additions and 0 deletions

View File

@ -2851,6 +2851,11 @@ void AppletOverlayWidget::destroy()
}
}
void AppletOverlayWidget::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
event->accept();
}
void AppletOverlayWidget::overlayAnimationComplete()
{
if (scene()) {

View File

@ -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();