mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 08:59:55 +00:00
Introduce the RideCache
.. just a refactor of ridelist out of Athlete for now but will shortly be refreshing in background and loading and saving to rideDB.json
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "MainWindow.h"
|
||||
#include "Context.h"
|
||||
#include "Athlete.h"
|
||||
#include "RideCache.h"
|
||||
|
||||
GenerateHeatMapDialog::GenerateHeatMapDialog(Context *context) : QDialog(context->mainWindow), context(context)
|
||||
{
|
||||
@@ -53,7 +54,7 @@ GenerateHeatMapDialog::GenerateHeatMapDialog(Context *context) : QDialog(context
|
||||
files->setIndentation(0);
|
||||
|
||||
// populate with each ride in the ridelist
|
||||
foreach (RideItem *rideItem, context->athlete->rideList) {
|
||||
foreach (RideItem *rideItem, context->athlete->rideCache->rides()) {
|
||||
|
||||
QTreeWidgetItem *add = new QTreeWidgetItem(files->invisibleRootItem());
|
||||
add->setFlags(add->flags() | Qt::ItemIsEditable);
|
||||
|
||||
Reference in New Issue
Block a user