diff --git a/notificationservice.cpp b/notificationservice.cpp index 736ce93..34b2b32 100644 --- a/notificationservice.cpp +++ b/notificationservice.cpp @@ -53,8 +53,8 @@ void NotificationService::setNotify(const QString &title, static_cast(type))); } -void NotificationService::setQuestion(const QString &title, const QString &text, const QString &img, int code) { - setQuestion(NotificationData(title, text, img, code)); +int NotificationService::setQuestion(const QString &title, const QString &text, const QString &img, int code) { + return setQuestion(NotificationData(title, text, img, code)); } NotificationService *NotificationService::getService() { diff --git a/notificationservice.h b/notificationservice.h index 63f3a65..dac9c59 100644 --- a/notificationservice.h +++ b/notificationservice.h @@ -71,7 +71,7 @@ public: * @param img are url to image of a queston window. * @param code are code of question. This code must be sendet to the questionComplete method after buttons clik. */ - Q_INVOKABLE void setQuestion(const QString& title = "", + Q_INVOKABLE int setQuestion(const QString& title = "", const QString& text = "", const QString& img = "", int code = 0);