Changeset View
Changeset View
Standalone View
Standalone View
interfaces/notificationsmodel.cpp
Context not available. | |||||
92 | this, &NotificationsModel::notificationRemoved); | 92 | this, &NotificationsModel::notificationRemoved); | ||
---|---|---|---|---|---|
93 | connect(m_dbusInterface, &OrgKdeKdeconnectDeviceNotificationsInterface::allNotificationsRemoved, | 93 | connect(m_dbusInterface, &OrgKdeKdeconnectDeviceNotificationsInterface::allNotificationsRemoved, | ||
94 | this, &NotificationsModel::clearNotifications); | 94 | this, &NotificationsModel::clearNotifications); | ||
95 | connect(m_dbusInterface, &OrgKdeKdeconnectDeviceNotificationsInterface::notificationUpdated, | ||||
96 | this, &NotificationsModel::notificationUpdated); | ||||
95 | 97 | | |||
96 | refreshNotificationList(); | 98 | refreshNotificationList(); | ||
97 | 99 | | |||
Context not available. | |||||
261 | endRemoveRows(); | 263 | endRemoveRows(); | ||
262 | } | 264 | } | ||
263 | } | 265 | } | ||
266 | | ||||
267 | void NotificationsModel::notificationUpdated(const QString& id) | ||||
268 | { | ||||
269 | //TODO only emit the affected indices | ||||
270 | Q_EMIT dataChanged(index(0,0), index(m_notificationList.size() - 1, 0)); | ||||
271 | } | ||||
Context not available. |