ref #5 qmlnotifyservice.h fix

This commit is contained in:
Oleg-designer 2021-04-16 09:49:55 +03:00
parent 57e4287b3d
commit 425e3f84e3

View File

@ -9,18 +9,19 @@ class QQmlApplicationEngine;
/** /**
* Simple notify service for qml. * Simple notify service for qml.
* Use : * Use :
* @code cpp
* #include <qmlnotifyservice.h> * #include <qmlnotifyservice.h>
*
* QmlNotificationService::init(); * QmlNotificationService::init();
* auto service = QmlNotificationService::NotificationService::getService() * auto service = QmlNotificationService::NotificationService::getService()
* service->setNotify("title", "text", "UrlOfImage", NotificationData::Normal) * service->setNotify("title", "text", "UrlOfImage", NotificationData::Normal)
* * @endcode
* *
* in qml : * in qml :
* * @code cpp
* NotificationServiceView { * NotificationServiceView {
anchors.fill: parent; anchors.fill: parent;
} }
* @endcode
*/ */
namespace QmlNotificationService { namespace QmlNotificationService {
bool NOTIFYSERVICESHARED_EXPORT init(QQmlApplicationEngine *engine); bool NOTIFYSERVICESHARED_EXPORT init(QQmlApplicationEngine *engine);