mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 17:09:56 +00:00
MainWindow Refactor Part 1 of 5
Breaking the MainWindow 'god object' into separate classes for Athlete and Context. Further updates will need to; - break MainWindow Gui elements into Toolbar and Views - migrate from RideItem and Ridelist to ActivityCollection and Activity classes that are not tied into gui elements. - introduce Application Context and AthleteCollection Once these are done we will be in a position to decouple most classes from mainwindow and also introduce tabbed athletes.
This commit is contained in:
@@ -276,7 +276,7 @@ void GoogleMapControl::createHtml()
|
||||
QColor GoogleMapControl::GetColor(int watts)
|
||||
{
|
||||
if (range < 0) return Qt::red;
|
||||
else return zoneColor(main->zones()->whichZone(range, watts), 7);
|
||||
else return zoneColor(main->athlete->zones()->whichZone(range, watts), 7);
|
||||
}
|
||||
|
||||
// create the ride line
|
||||
|
||||
Reference in New Issue
Block a user