stop crashing due to undefined destruction order

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=845983
This commit is contained in:
Dirk Mueller 2008-08-12 18:41:56 +00:00
parent a79d6d5be2
commit 93a8a87368
2 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@ void shadowBlur(QImage &image, int radius, const QColor &color)
QPainter p(&image);
p.setCompositionMode(QPainter::CompositionMode_SourceIn);
p.fillRect(image.rect(), color);
p.end();
}
QPixmap shadowText(QString text, QColor textColor, QColor shadowColor, QPoint offset, int radius)

View File

@ -514,6 +514,7 @@ QPixmap SignalPlotter::getSnapshotImage(uint w, uint height)
QPixmap image = QPixmap(newWidth, height);
QPainter p(&image);
drawWidget(&p, newWidth, height, newWidth);
p.end();
return image;
}