[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/plasma/widgets
From: Marco Martin <notmart () gmail ! com>
Date: 2008-12-31 17:30:52
Message-ID: 1230744652.811156.30126.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 903932 by mart:
draw the black block only is there is no svg background
M +3 -1 signalplotter.cpp
--- trunk/KDE/kdelibs/plasma/widgets/signalplotter.cpp #903931:903932
@@ -628,6 +628,7 @@
(uint)d->backgroundPixmap.size().width() != w) {
// recreate on resize etc
d->backgroundPixmap = QPixmap(w, height);
+ d->backgroundPixmap.fill(Qt::transparent);
QPainter pCache(&d->backgroundPixmap);
pCache.setRenderHint(QPainter::Antialiasing, false);
pCache.setFont(d->font);
@@ -689,10 +690,11 @@
void SignalPlotter::drawBackground(QPainter *p, int w, int h)
{
- p->fillRect(0, 0, w, h, d->backgroundColor);
if (d->svgBackground) {
d->svgBackground->resize(w, h);
d->svgBackground->paint(p, 0, 0);
+ } else {
+ p->fillRect(0, 0, w, h, d->backgroundColor);
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic