D28742: Add KDialogJobUiDelegate(KJobUiDelegate::Flags) constructor
Kevin Ottens
noreply at phabricator.kde.org
Sat Apr 11 15:58:43 BST 2020
ervin added a comment.
In D28742#646050 <https://phabricator.kde.org/D28742#646050>, @dfaure wrote:
> In D28742#646009 <https://phabricator.kde.org/D28742#646009>, @kossebau wrote:
>
> > And perhaps could be defaulted to nullptr, for use-cases which do not have a window at hand and are fine with any default?
>
>
> I've been wondering. But people tend to forget to do so, and in most cases, if we choose the dialog delegate, then there's a QWidget based window somewhere.
> Plasma uses KNotificationJobUiDelegate so it's not a problem here.
> My thinking is that I'd rather force people to think about it, and possibly pass a nullptr in case there's really no window around.
+1, I don't think defaulting to nullptr is a good idea.
REPOSITORY
R288 KJobWidgets
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D28742
To: dfaure, broulik, davidedmundson, ervin
Cc: kossebau, kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200411/eb93fb24/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list