The non active curves are not drawn in bold (pen width 2)

This commit is contained in:
Bertrand Songis
2014-01-07 18:03:50 +01:00
parent 3b59d07724
commit 27f8be304a
+2 -2
View File
@@ -249,13 +249,13 @@ void Curves::updateCurve()
scene->addLine(GFX_MARGIN, centerY, width+GFX_MARGIN, centerY); scene->addLine(GFX_MARGIN, centerY, width+GFX_MARGIN, centerY);
QPen pen; QPen pen;
pen.setWidth(2); pen.setWidth(1);
pen.setStyle(Qt::SolidLine); pen.setStyle(Qt::SolidLine);
int numcurves = GetEepromInterface()->getCapability(NumCurves); int numcurves = GetEepromInterface()->getCapability(NumCurves);
for (int k=0; k<numcurves; k++) { for (int k=0; k<numcurves; k++) {
pen.setColor(colors[k]); pen.setColor(colors[k]);
if (currentCurve==k || visibleCurves[k]) { if (currentCurve!=k && visibleCurves[k]) {
int numpoints = model.curves[k].count; int numpoints = model.curves[k].count;
for (int i=0; i<numpoints-1; i++) { for (int i=0; i<numpoints-1; i++) {
if (model.curves[k].type == CurveData::CURVE_TYPE_CUSTOM) if (model.curves[k].type == CurveData::CURVE_TYPE_CUSTOM)