D26966: [kstyle] Use guarded pointers to store shadows

Aleix Pol Gonzalez noreply at phabricator.kde.org
Tue Jan 28 15:06:55 GMT 2020


apol added inline comments.

INLINE COMMENTS

> breezeshadowhelper.h:157
>          //* managed shadows
> -        QMap<QWidget*, KWindowShadow*> _shadows;
>  

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); });`

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/40706e6e/attachment.html>


More information about the Plasma-devel mailing list