should be using paintWidget, not paint
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=710733
This commit is contained in:
parent
2fc4fb59c3
commit
b42db6a2ea
@ -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()) {
|
||||||
|
2
applet.h
2
applet.h
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user