From 6981341ca4f208752fd007215bf8677c2359197a Mon Sep 17 00:00:00 2001 From: Luciano Montanaro Date: Tue, 20 Dec 2011 00:21:22 +0100 Subject: [PATCH] Actually make the new fields accessible through the data() call --- application/stationschedulemodel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/stationschedulemodel.cpp b/application/stationschedulemodel.cpp index 72839c7..0629881 100644 --- a/application/stationschedulemodel.cpp +++ b/application/stationschedulemodel.cpp @@ -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")); } -- 1.7.9.5