Changeset View
Changeset View
Standalone View
Standalone View
interfaces/notificationsmodel.cpp
Show First 20 Lines • Show All 261 Lines • ▼ Show 20 Line(s) | 259 | if (!m_notificationList.isEmpty()) { | |||
---|---|---|---|---|---|
262 | m_notificationList.clear(); | 262 | m_notificationList.clear(); | ||
263 | endRemoveRows(); | 263 | endRemoveRows(); | ||
264 | } | 264 | } | ||
265 | } | 265 | } | ||
266 | 266 | | |||
267 | void NotificationsModel::notificationUpdated(const QString& id) | 267 | void NotificationsModel::notificationUpdated(const QString& id) | ||
268 | { | 268 | { | ||
269 | //TODO only emit the affected indices | 269 | //TODO only emit the affected indices | ||
270 | Q_UNUSED(id); | ||||
270 | Q_EMIT dataChanged(index(0,0), index(m_notificationList.size() - 1, 0)); | 271 | Q_EMIT dataChanged(index(0,0), index(m_notificationList.size() - 1, 0)); | ||
271 | } | 272 | } |