stop crashing due to undefined destruction order
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=845983
This commit is contained in:
parent
a79d6d5be2
commit
93a8a87368
@ -42,6 +42,7 @@ void shadowBlur(QImage &image, int radius, const QColor &color)
|
|||||||
QPainter p(&image);
|
QPainter p(&image);
|
||||||
p.setCompositionMode(QPainter::CompositionMode_SourceIn);
|
p.setCompositionMode(QPainter::CompositionMode_SourceIn);
|
||||||
p.fillRect(image.rect(), color);
|
p.fillRect(image.rect(), color);
|
||||||
|
p.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
QPixmap shadowText(QString text, QColor textColor, QColor shadowColor, QPoint offset, int radius)
|
QPixmap shadowText(QString text, QColor textColor, QColor shadowColor, QPoint offset, int radius)
|
||||||
|
@ -514,6 +514,7 @@ QPixmap SignalPlotter::getSnapshotImage(uint w, uint height)
|
|||||||
QPixmap image = QPixmap(newWidth, height);
|
QPixmap image = QPixmap(newWidth, height);
|
||||||
QPainter p(&image);
|
QPainter p(&image);
|
||||||
drawWidget(&p, newWidth, height, newWidth);
|
drawWidget(&p, newWidth, height, newWidth);
|
||||||
|
p.end();
|
||||||
return image;
|
return image;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user