don't bother painting until we've set up
svn path=/trunk/KDE/kdelibs/; revision=885308
This commit is contained in:
parent
5a987e0a0b
commit
ac6a69d29a
@ -973,8 +973,11 @@ void Applet::addAction(QString name, QAction *action)
|
|||||||
|
|
||||||
void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
||||||
{
|
{
|
||||||
QPainter *p;
|
if (!d->started) {
|
||||||
//FIXME: we should probably set the pixmap to screenSize(), but that breaks stuff atm.
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPainter *p = painter;
|
||||||
QPixmap *pixmap = 0;
|
QPixmap *pixmap = 0;
|
||||||
|
|
||||||
if (d->ghost) {
|
if (d->ghost) {
|
||||||
@ -987,8 +990,6 @@ void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QW
|
|||||||
|
|
||||||
p = new QPainter();
|
p = new QPainter();
|
||||||
p->begin(pixmap);
|
p->begin(pixmap);
|
||||||
} else {
|
|
||||||
p = painter;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
p->save();
|
p->save();
|
||||||
|
Loading…
Reference in New Issue
Block a user