From 1ce0e105d2151e2517a38fde2066b649ae374a74 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Mon, 6 Jun 2022 20:29:27 -0400 Subject: [PATCH] libnotificationmanager: Add default parameters for actions in WatchedNotificationsModel for QML --- libnotificationmanager/watchednotificationsmodel.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libnotificationmanager/watchednotificationsmodel.h b/libnotificationmanager/watchednotificationsmodel.h index 9eb17205a..27cbd31f9 100644 --- a/libnotificationmanager/watchednotificationsmodel.h +++ b/libnotificationmanager/watchednotificationsmodel.h @@ -24,9 +24,9 @@ public: Q_INVOKABLE void expire(uint notificationId) override; Q_INVOKABLE void close(uint notificationId) override; - Q_INVOKABLE void invokeDefaultAction(uint notificationId, Notifications::InvokeBehavior behavior) override; - Q_INVOKABLE void invokeAction(uint notificationId, const QString &actionName, Notifications::InvokeBehavior behavior) override; - Q_INVOKABLE void reply(uint notificationId, const QString &text, Notifications::InvokeBehavior behavior) override; + Q_INVOKABLE void invokeDefaultAction(uint notificationId, Notifications::InvokeBehavior behavior = Notifications::None) override; + Q_INVOKABLE void invokeAction(uint notificationId, const QString &actionName, Notifications::InvokeBehavior behavior = Notifications::None) override; + Q_INVOKABLE void reply(uint notificationId, const QString &text, Notifications::InvokeBehavior behavior = Notifications::None) override; bool valid(); Q_SIGNALS: