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:
parent
42b02fbfa5
commit
fab3611a21
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user