KPIOverviewItem painting nit

.. setData() was adjusting visibility of the progressbar and should not
   have been. Now calls itemGeometryChanged() to manage that correctly.
This commit is contained in:
Mark Liversedge
2020-06-10 09:54:40 +01:00
parent 66fb3b2bde
commit 6163ece7d6

View File

@@ -366,11 +366,10 @@ KPIOverviewItem::setData(RideItem *item)
value=Utils::removeDP(value);
// now set the progressbar
if (start == 0 && stop == 0) progressbar->hide();
else {
progressbar->show();
progressbar->setValue(start, stop, value.toDouble());
}
progressbar->setValue(start, stop, value.toDouble());
// show/hide widgets on the basis of geometry
itemGeometryChanged();
}
void