mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user