D26966: [kstyle] Use guarded pointers to store shadows
Kai Uwe Broulik
noreply at phabricator.kde.org
Tue Jan 28 15:09:21 GMT 2020
broulik added inline comments.
INLINE COMMENTS
> apol wrote in breezeshadowhelper.h:157
> if this is a thing, maybe it would make sense to actually try and remove the KWindowShadows upon destruction?
> Something like `connect(newshadow, &QObject::destroyed, this, [this, widget] { _shadows.remove(widget); });`
We have a connection to `destroyed` for the `widget` which isn't reached when a window is destroyed on `QApplication` teardown, so I think the same might be true for the window, I would still prefer this over a `QPointer`.
REPOSITORY
R31 Breeze
REVISION DETAIL
https://phabricator.kde.org/D26966
To: zzag, #plasma, broulik
Cc: apol, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200128/5d223895/attachment.html>
More information about the Plasma-devel
mailing list