should be using paintWidget, not paint

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=710733
This commit is contained in:
Aaron J. Seigo 2007-09-10 18:50:36 +00:00
parent 2fc4fb59c3
commit b42db6a2ea
2 changed files with 2 additions and 2 deletions

View File

@ -696,7 +696,7 @@ QColor Applet::color() const
} }
} }
void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) void Applet::paintWidget(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{ {
Q_UNUSED(widget) Q_UNUSED(widget)
if (d->shadow && d->shadow->shadowedSize() != boundingRect().size()) { if (d->shadow && d->shadow->shadowedSize() != boundingRect().size()) {

View File

@ -552,7 +552,7 @@ class PLASMA_EXPORT Applet : public Widget
/** /**
* Reimplemented from QGraphicsItem * Reimplemented from QGraphicsItem
**/ **/
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); void paintWidget(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
class Private; class Private;
Private* const d; Private* const d;