4
0
mirror of https://github.com/QuasarApp/SimpleQmlNotify.git synced 2025-05-04 17:29:36 +00:00

fix setQestion retur nvalue

This commit is contained in:
Andrei Yankovich 2021-05-04 18:40:09 +03:00
parent 8896d568c7
commit c11bd8131d
2 changed files with 3 additions and 3 deletions

@ -53,8 +53,8 @@ void NotificationService::setNotify(const QString &title,
static_cast<NotificationData::Type>(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() {

@ -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);