Actually make the new fields accessible through the data() call
[quandoparte] / application / stationschedulemodel.cpp
index 72839c7..0629881 100644 (file)
@@ -279,6 +279,10 @@ QVariant StationScheduleModel::data(const QModelIndex &index, int role) const
         return QVariant::fromValue(item.delay());
     case DelayClassRole:
         return QVariant::fromValue(item.delayClass());
+    case ExpectedPlatformRole:
+        return QVariant::fromValue(item.expectedPlatform());
+    case ActualPlatformRole:
+        return QVariant::fromValue(item.actualPlatform());
     default:
         return QVariant::fromValue(QString("Unknown role requested"));
     }