From c62b683dbd652d8aff225a627a1f7b26edbeb9b5 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Fri, 8 Jun 2007 05:39:34 +0000 Subject: [PATCH] for the pussies who don't have srcdir==buildir for qt ;) svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=672777 --- widgets/icon.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/widgets/icon.cpp b/widgets/icon.cpp index a3be98278..fb25704e3 100644 --- a/widgets/icon.cpp +++ b/widgets/icon.cpp @@ -21,7 +21,12 @@ #include #include #include + +//#define PROVE_IT_CAN_BE_DONE + +#ifdef PROVE_IT_CAN_BE_DONE #include +#endif #include #include @@ -123,8 +128,7 @@ void Icon::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWid Q_UNUSED(option) Q_UNUSED(widget) -// QRectF rect = boundingRect(); - +#ifdef PROVE_IT_CAN_BE_DONE if (d->state == Private::HoverState && scene()) { QList views = scene()->views(); if (views.count() > 0) { @@ -140,6 +144,7 @@ void Icon::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWid painter->restore(); } } +#endif QString element; if (d->svgElements & Private::SvgBackground) {