mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 00:49:55 +00:00
ConfigChanged Part 1 of 3
.. introduce concept of configChanged(what) to pass details of what config has been changed .. fixed zones changes to re-read after write to correct the save twice to get changes to zones bug. .. next parts need to spot changes (part 2) and then action appropriately (part 3)
This commit is contained in:
@@ -26,9 +26,9 @@
|
||||
RideCacheModel::RideCacheModel(Context *context, RideCache *cache) : QAbstractTableModel(cache), context(context), rideCache(cache)
|
||||
{
|
||||
factory = &RideMetricFactory::instance();
|
||||
configChanged();
|
||||
configChanged(CONFIG_FIELDS | CONFIG_NOTECOLOR);
|
||||
|
||||
connect(context, SIGNAL(configChanged()), this, SLOT(configChanged()));
|
||||
connect(context, SIGNAL(configChanged(qint32)), this, SLOT(configChanged(qint32)));
|
||||
connect(context, SIGNAL(refreshStart()), this, SLOT(refreshStart()));
|
||||
connect(context, SIGNAL(refreshEnd()), this, SLOT(refreshEnd()));
|
||||
connect(context, SIGNAL(refreshUpdate(QDate)), this, SLOT(refreshUpdate(QDate)));
|
||||
@@ -141,7 +141,7 @@ RideCacheModel::headerData(int section, Qt::Orientation orientation, int role) c
|
||||
|
||||
// when updating metadata config
|
||||
void
|
||||
RideCacheModel::configChanged()
|
||||
RideCacheModel::configChanged(qint32)
|
||||
{
|
||||
// we are resetting
|
||||
beginResetModel();
|
||||
|
||||
Reference in New Issue
Block a user