diff --git a/qmlnotifyservice.cpp b/qmlnotifyservice.cpp index 37a234d..f68d245 100644 --- a/qmlnotifyservice.cpp +++ b/qmlnotifyservice.cpp @@ -7,6 +7,7 @@ #include "notificationservice.h" #include "qmlnotifyservice.h" +#include "historynotificationsmodel.h" #include <QQmlApplicationEngine> #include <QQmlContext> @@ -22,10 +23,12 @@ bool init(QQmlApplicationEngine *engine) { return false; initSNotufyResources(); + QPointer<HistoryNotificationsModel> historyModel = new HistoryNotificationsModel(); engine->addImportPath(":/"); root->setContextProperty("notificationService", NotificationService::getService()); + root->setContextProperty("historyNotificationsModel", historyModel); return true; } }