Made notification id accessible from QML

This commit is contained in:
Albert Vaca 2015-01-20 22:17:01 -08:00
parent 86bfbf1a4c
commit 91d4a03258

View file

@ -50,6 +50,7 @@ NotificationsModel::NotificationsModel(QObject* parent)
QHash<int, QByteArray> names = roleNames(); QHash<int, QByteArray> names = roleNames();
names.insert(DbusInterfaceRole, "dbusInterface"); names.insert(DbusInterfaceRole, "dbusInterface");
names.insert(AppNameModelRole, "appName"); names.insert(AppNameModelRole, "appName");
names.insert(IdModelRole, "notificationId");
names.insert(DismissableModelRole, "dismissable"); names.insert(DismissableModelRole, "dismissable");
setRoleNames(names); setRoleNames(names);