mirror of
https://github.com/QuasarApp/SimpleQmlNotify.git
synced 2025-04-26 13:44:34 +00:00
There was register HistoryNotificationsModel in qml
This commit is contained in:
parent
1c6e7f06bc
commit
45edd82368
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user