diff --git a/containment.cpp b/containment.cpp index fa6422470..e676999c7 100644 --- a/containment.cpp +++ b/containment.cpp @@ -521,6 +521,26 @@ void Containment::dropEvent(QGraphicsSceneDragDropEvent *event) } } +void Containment::hoverEnterEvent(QGraphicsSceneHoverEvent *event) +{ + //FIXME Qt4.4 check to see if this is still necessary to avoid unecessary repaints + // check with QT_FLUSH_PAINT=1 and mouse through applets that accept hover, + // applets that don't and system windows + if (event->spontaneous()) { + Applet::hoverEnterEvent(event); + } + Q_UNUSED(event) +} + +void Containment::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) +{ + //FIXME Qt4.4 check to see if this is still necessary to avoid unecessary repaints + // check with QT_FLUSH_PAINT=1 and mouse through applets that accept hover, + // applets that don't and system windows +// Applet::hoverLeaveEvent(event); + Q_UNUSED(event) +} + } #include "containment.moc" diff --git a/containment.h b/containment.h index 9a5bf7f05..7f5d5d58f 100644 --- a/containment.h +++ b/containment.h @@ -217,6 +217,8 @@ class PLASMA_EXPORT Containment : public Applet protected: void contextMenuEvent(QGraphicsSceneContextMenuEvent * event); + void hoverEnterEvent(QGraphicsSceneHoverEvent *event); + void hoverLeaveEvent(QGraphicsSceneHoverEvent *event); protected Q_SLOTS: /**