Sneak in for dev builds

.. full plot controls always visible in compare mode.
This commit is contained in:
Mark Liversedge
2014-01-05 18:03:46 +00:00
parent d367adb0e6
commit 530c12435f
3 changed files with 54 additions and 8 deletions

View File

@@ -1356,11 +1356,20 @@ AllPlotWindow::setAllPlotWidgets(RideItem *ride)
scrollRight->show();
} else {
fullPlot->hide();
controlsLayout->setRowStretch(0, 100);
controlsLayout->setRowStretch(1, 00);
spanSlider->hide();
scrollLeft->hide();
scrollRight->hide();
if (isCompare()) {
controlsLayout->setRowStretch(0, 100);
controlsLayout->setRowStretch(1, 00);
spanSlider->show();
scrollLeft->show();
scrollRight->show();
} else {
controlsLayout->setRowStretch(0, 100);
controlsLayout->setRowStretch(1, 00);
spanSlider->hide();
scrollLeft->hide();
scrollRight->hide();
}
}
}
}
@@ -1978,9 +1987,12 @@ AllPlotWindow::setShowFull(int value)
}
else {
fullPlot->hide();
spanSlider->hide();
scrollLeft->hide();
scrollRight->hide();
if (!isCompare()) {
spanSlider->hide();
scrollLeft->hide();
scrollRight->hide();
}
allPlotLayout->setStretch(1,0);
}
}