for the pussies who don't have srcdir==buildir for qt ;)

svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=672777
This commit is contained in:
Aaron J. Seigo 2007-06-08 05:39:34 +00:00
parent b412c393d6
commit c62b683dbd

View File

@ -21,7 +21,12 @@
#include <QPainter> #include <QPainter>
#include <QGraphicsSceneMouseEvent> #include <QGraphicsSceneMouseEvent>
#include <QGraphicsView> #include <QGraphicsView>
//#define PROVE_IT_CAN_BE_DONE
#ifdef PROVE_IT_CAN_BE_DONE
#include <private/qwindowsurface_p.h> #include <private/qwindowsurface_p.h>
#endif
#include <KIcon> #include <KIcon>
#include <KImageEffect> #include <KImageEffect>
@ -123,8 +128,7 @@ void Icon::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWid
Q_UNUSED(option) Q_UNUSED(option)
Q_UNUSED(widget) Q_UNUSED(widget)
// QRectF rect = boundingRect(); #ifdef PROVE_IT_CAN_BE_DONE
if (d->state == Private::HoverState && scene()) { if (d->state == Private::HoverState && scene()) {
QList<QGraphicsView*> views = scene()->views(); QList<QGraphicsView*> views = scene()->views();
if (views.count() > 0) { if (views.count() > 0) {
@ -140,6 +144,7 @@ void Icon::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWid
painter->restore(); painter->restore();
} }
} }
#endif
QString element; QString element;
if (d->svgElements & Private::SvgBackground) { if (d->svgElements & Private::SvgBackground) {