From 4b1a62d68f5086f07bbea2f65740d800b447e2a7 Mon Sep 17 00:00:00 2001 From: Joern Date: Tue, 30 Sep 2014 17:33:48 +0200 Subject: [PATCH] AllPlot - Alt/Slope - switching between views ... the Alt/Plot settings were not in sync between standard anc compare view (changes in compare view had not impact on standard view - when de-activating compare) ... Alt/Plot is now also visible in "fullPlot" as this helps to find sections to zoom in (by checking the color coding) --- src/AllPlotWindow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/AllPlotWindow.cpp b/src/AllPlotWindow.cpp index 8581fd303..729e1aed6 100644 --- a/src/AllPlotWindow.cpp +++ b/src/AllPlotWindow.cpp @@ -819,8 +819,6 @@ AllPlotWindow::compareChanged() spanSlider->setLowerValue(spanSlider->minimum()); spanSlider->setUpperValue(spanSlider->maximum()); - // don't show alt/slope - fullPlot->standard->altSlopeCurve->setVisible(false); // redraw for red/no-red title fullPlot->replot(); @@ -1080,9 +1078,6 @@ AllPlotWindow::redrawFullPlot() static_cast(fullPlot->canvas())->setBorderRadius(0); fullPlot->standard->grid->enableY(false); - //don't show the ALT/SLOPE plot here - fullPlot->standard->altSlopeCurve->setVisible(false); - // use the ride to decide if (fullPlot->bydist) fullPlot->setAxisScale(QwtPlot::xBottom, @@ -2262,7 +2257,12 @@ AllPlotWindow::setShowAltSlope(int value) // compare mode selfcontained update if (isCompare()) { + + // transfer changes of setting here (which is more than on/off) also to other plot settings fullPlot->showAltSlopeState = value; + fullPlot->setAltSlopePlotStyle(fullPlot->standard->altSlopeCurve); + allPlot->showAltSlopeState = value; + allPlot->setAltSlopePlotStyle(allPlot->standard->altSlopeCurve); compareChanged(); active = false; return;