From 45edd8236813cb02e532cd52f64e4959e420de16 Mon Sep 17 00:00:00 2001 From: master Date: Wed, 5 Apr 2023 15:33:24 +0300 Subject: [PATCH] There was register HistoryNotificationsModel in qml --- qmlnotifyservice.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 #include @@ -22,10 +23,12 @@ bool init(QQmlApplicationEngine *engine) { return false; initSNotufyResources(); + QPointer historyModel = new HistoryNotificationsModel(); engine->addImportPath(":/"); root->setContextProperty("notificationService", NotificationService::getService()); + root->setContextProperty("historyNotificationsModel", historyModel); return true; } }