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
This commit is contained in:
Aaron J. Seigo 2007-11-05 18:40:45 +00:00
parent cda61b4888
commit 99f67622e2
2 changed files with 22 additions and 0 deletions

View File

@ -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" #include "containment.moc"

View File

@ -217,6 +217,8 @@ class PLASMA_EXPORT Containment : public Applet
protected: protected:
void contextMenuEvent(QGraphicsSceneContextMenuEvent * event); void contextMenuEvent(QGraphicsSceneContextMenuEvent * event);
void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
protected Q_SLOTS: protected Q_SLOTS:
/** /**