Transparency works now!! Aaron, remember to fill QPixmaps with

Qt::transparent.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=722710
This commit is contained in:
Thomas Georgiou 2007-10-07 23:32:56 +00:00
parent 42b02fbfa5
commit fab3611a21

View File

@ -325,6 +325,7 @@ void Widget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QW
// Recreate the pixmap if it's gone.
if (pix.isNull()) {
pix = QPixmap(d->cacheSize);
pix.fill(Qt::transparent);
exposed = brect;
}
@ -372,6 +373,7 @@ void Widget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QW
// Auto-adjust the pixmap size.
if (deviceRect.size() != pix.size()) {
pix = QPixmap(deviceRect.size());
pix.fill(Qt::transparent);
exposed = brect;
}