- Q_UNUSED(notificationId);
- /* fancy stuff to be implemented later
- int idx = _notifications.indexOf(notificationId);
-
- if(_notifications.isEmpty()) {
- */
- _notifications.clear();
- _activeId = 0;
+ QList<Notification>::iterator i = _notifications.begin();
+ while(i != _notifications.end()) {
+ if(i->notificationId == notificationId)
+ i = _notifications.erase(i);
+ else
+ ++i;
+ }
+