UX Fixups

.. chart bar scroll left and right when too many charts
.. set background in ride plot
.. chart menu says 'More...' instead of down tick
This commit is contained in:
Mark Liversedge
2014-03-10 19:40:22 +00:00
parent 6e47d8820e
commit a073acc78d
5 changed files with 169 additions and 27 deletions

View File

@@ -550,6 +550,8 @@ AllPlotWindow::AllPlotWindow(Context *context) :
void
AllPlotWindow::configChanged()
{
setProperty("color", GColor(CRIDEPLOTBACKGROUND));
// we're going to replot, but only if we're active
// and all the other guff
RideItem *ride = myRideItem;
@@ -558,9 +560,6 @@ AllPlotWindow::configChanged()
return;
}
// ignore if null, or manual / empty
if (!ride || !ride->ride() || !ride->ride()->dataPoints().count()) return;
// Container widgets should not paint
// since they tend to use naff defaults and
// 'complicate' or 'make busy' the general
@@ -571,6 +570,9 @@ AllPlotWindow::configChanged()
stackFrame->widget()->setPalette(palette);
fullPlot->setCanvasBackground(GColor(CRIDEPLOTBACKGROUND));
// ignore if null, or manual / empty
if (!ride || !ride->ride() || !ride->ride()->dataPoints().count()) return;
// reset the charts etc
if (isCompare()) {