Move specialFields from MainWindow to Context

.. and tidy up a few unneccessary references to mainWindow
This commit is contained in:
Mark Liversedge
2013-07-14 11:51:34 +01:00
parent d30ec2ae3a
commit 12f63e2b73
19 changed files with 36 additions and 59 deletions

View File

@@ -221,7 +221,7 @@ void DataFilter::configUpdate()
// now add the ride metadata fields -- should be the same generally
foreach(FieldDefinition field, context->athlete->rideMetadata()->getFields()) {
QString underscored = field.name;
if (!context->mainWindow->specialFields.isMetric(underscored)) {
if (!context->specialFields.isMetric(underscored)) {
lookupMap.insert(underscored.replace(" ","_"), field.name);
lookupType.insert(underscored.replace(" ","_"), (field.type > 2)); // true if is number
}