summaryrefslogtreecommitdiffstats
path: root/framework/src
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src')
-rw-r--r--framework/src/domain/perioddayeventmodel.cpp3
-rw-r--r--framework/src/domain/perioddayeventmodel.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/framework/src/domain/perioddayeventmodel.cpp b/framework/src/domain/perioddayeventmodel.cpp
index 6fd6e0ff..c5f2c197 100644
--- a/framework/src/domain/perioddayeventmodel.cpp
+++ b/framework/src/domain/perioddayeventmodel.cpp
@@ -168,6 +168,8 @@ QVariant PeriodDayEventModel::data(const QModelIndex &id, int role) const
168 switch (role) { 168 switch (role) {
169 case Qt::DisplayRole: 169 case Qt::DisplayRole:
170 return mPeriodStart.addDays(day).toString(); 170 return mPeriodStart.addDays(day).toString();
171 case Date:
172 return mPeriodStart.addDays(day);
171 case Events: { 173 case Events: {
172 auto result = QVariantList{}; 174 auto result = QVariantList{};
173 175
@@ -222,6 +224,7 @@ QHash<int, QByteArray> PeriodDayEventModel::roleNames() const
222{ 224{
223 return { 225 return {
224 {Events, "events"}, 226 {Events, "events"},
227 {Date, "date"},
225 {Summary, "summary"}, 228 {Summary, "summary"},
226 {Description, "description"}, 229 {Description, "description"},
227 {StartTime, "starts"}, 230 {StartTime, "starts"},
diff --git a/framework/src/domain/perioddayeventmodel.h b/framework/src/domain/perioddayeventmodel.h
index 672afbea..a7d9cea8 100644
--- a/framework/src/domain/perioddayeventmodel.h
+++ b/framework/src/domain/perioddayeventmodel.h
@@ -91,6 +91,7 @@ public:
91 enum Roles 91 enum Roles
92 { 92 {
93 Events = Qt::UserRole + 1, 93 Events = Qt::UserRole + 1,
94 Date,
94 Summary, 95 Summary,
95 Description, 96 Description,
96 StartTime, 97 StartTime,