diff --git a/src/knotificationjobuidelegate.h b/src/knotificationjobuidelegate.h --- a/src/knotificationjobuidelegate.h +++ b/src/knotificationjobuidelegate.h @@ -44,6 +44,13 @@ */ KNotificationJobUiDelegate(); + /** + * Constructs a new KNotificationJobUiDelegate. + * @param flags allows to enable automatic error/warning handling + * @since 5.70 + */ + explicit KNotificationJobUiDelegate(KJobUiDelegate::Flags flags); // KF6 TODO merge with default constructor, using AutoHandlingDisabled as default value + /** * Destroys the KNotificationJobUiDelegate. */ diff --git a/src/knotificationjobuidelegate.cpp b/src/knotificationjobuidelegate.cpp --- a/src/knotificationjobuidelegate.cpp +++ b/src/knotificationjobuidelegate.cpp @@ -47,6 +47,12 @@ { } +KNotificationJobUiDelegate::KNotificationJobUiDelegate(KJobUiDelegate::Flags flags) + : KJobUiDelegate(flags) + , d(new KNotificationJobUiDelegatePrivate) +{ +} + KNotificationJobUiDelegate::~KNotificationJobUiDelegate() = default; bool KNotificationJobUiDelegate::setJob(KJob *job)