diff options
-rw-r--r-- | framework/src/domain/daylongeventmodel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/src/domain/daylongeventmodel.cpp b/framework/src/domain/daylongeventmodel.cpp index cb9769c6..044f9e02 100644 --- a/framework/src/domain/daylongeventmodel.cpp +++ b/framework/src/domain/daylongeventmodel.cpp | |||
@@ -107,8 +107,8 @@ bool DayLongEventModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourc | |||
107 | return false; | 107 | return false; |
108 | } | 108 | } |
109 | 109 | ||
110 | auto eventStart = event->getStartTime().date(); | 110 | const auto eventStart = event->getStartTime().date(); |
111 | auto eventEnd = event->getEndTime().date(); | 111 | const auto eventEnd = event->getEndTime().date(); |
112 | 112 | ||
113 | if (!eventStart.isValid() || !eventEnd.isValid()) { | 113 | if (!eventStart.isValid() || !eventEnd.isValid()) { |
114 | SinkWarning() << "Invalid date in the event model, ignoring..."; | 114 | SinkWarning() << "Invalid date in the event model, ignoring..."; |
@@ -131,7 +131,7 @@ void DayLongEventModel::setPeriodStart(const QDate &start) | |||
131 | } | 131 | } |
132 | 132 | ||
133 | mPeriodStart = start; | 133 | mPeriodStart = start; |
134 | invalidateFilter(); | 134 | invalidate(); |
135 | } | 135 | } |
136 | 136 | ||
137 | void DayLongEventModel::setPeriodStart(const QVariant &start) | 137 | void DayLongEventModel::setPeriodStart(const QVariant &start) |
@@ -147,7 +147,7 @@ int DayLongEventModel::periodLength() const | |||
147 | void DayLongEventModel::setPeriodLength(int length) | 147 | void DayLongEventModel::setPeriodLength(int length) |
148 | { | 148 | { |
149 | mPeriodLength = length; | 149 | mPeriodLength = length; |
150 | invalidateFilter(); | 150 | invalidate(); |
151 | } | 151 | } |
152 | 152 | ||
153 | QSet<QByteArray> DayLongEventModel::calendarFilter() const | 153 | QSet<QByteArray> DayLongEventModel::calendarFilter() const |