[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/ksysguard/gui/SensorDisplayLib
From: John Tapsell <john.tapsell () kdemail ! net>
Date: 2009-10-23 9:24:02
Message-ID: 1256289842.443829.27720.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1039365 by johnflux:
Draw the fill better, properly aligning with xaxis and drawing in the background
M +6 -2 SignalPlotter.cc
--- trunk/KDE/kdebase/workspace/ksysguard/gui/SensorDisplayLib/SignalPlotter.cc #1039364:1039365
@@ -850,6 +850,9 @@
float y0 = 0;
float y1 = 0;
float y2 = 0;
+ qreal xaxis = boundingBox.bottom();
+ if( mNiceMinValue < 0)
+ xaxis = qMax(xaxis + mNiceMinValue*scaleFac, qreal(boundingBox.top()));
for (int j = qMin(datapoints.size(), mBeamColors.size())-1; j >=0 ; --j) {
if(!mStackBeams)
y0 = y1 = y2 = 0;
@@ -877,8 +880,9 @@
p->setPen(pen);
p->drawPath(path);
if(mFillOpacity) {
- path.lineTo(x0,boundingBox.bottom());
- path.lineTo(x1,boundingBox.bottom());
+ p->setCompositionMode(QPainter::CompositionMode_DestinationOver);
+ path.lineTo(x0, xaxis);
+ path.lineTo(x1, xaxis);
path.lineTo(x1,y1);
QColor fillColor = mBeamColors[j];
fillColor.setAlpha(mFillOpacity);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic