~macslow/unity8/fix-snap-decision-proxy-model-hack

« back to all changes in this revision

Viewing changes to tests/mocks/Unity/Notifications/MockNotificationModel.cpp

  • Committer: Mirco Müller
  • Date: 2015-01-20 14:32:47 UTC
  • Revision ID: mirco.mueller@ubuntu.com-20150120143247-wwf1ibz7c63aer99
Trying to connect MockNotification::close() to MockNotificationModel::remove()

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <QMap>
29
29
#include <QStringListModel>
30
30
#include <QQmlEngine>
 
31
#include <QDebug>
31
32
 
32
33
using namespace unity::shell::notifications;
33
34
 
173
174
    return roles;
174
175
}
175
176
 
 
177
void MockNotificationModel::onCompleted(unsigned int id) {
 
178
    qDebug() << "onCompleted(" << id << ")";
 
179
    remove(id);
 
180
}
 
181
 
176
182
void MockNotificationModel::onDataChanged(unsigned int id) {
177
183
    for(int i = 0; i < m_queue.size(); i++) {
178
184
        if(m_queue[i]->getID() == id) {