The non active curves are not drawn in bold (pen width 2)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user