From 99f67622e20b2621c532494e6258b71c6ded7cbb Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Mon, 5 Nov 2007 18:40:45 +0000 Subject: [PATCH] the last of the full screen repaints are gone, gone gone. TT is aware of the bugs i'm working around, so hopefully we can get rid of this code someday, but for now ... a much more performant and smoother plasma. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=733167 --- containment.cpp | 20 ++++++++++++++++++++ containment.h | 2 ++ 2 files changed, 22 insertions(+) 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: /**