mart added inline comments.

INLINE COMMENTS

> davidedmundson wrote in framesvg.cpp:136
> I'm lost on why we have the pendingEnabledBorders
> 
> you have some bugs if you do:
> 
> setRepaintBlocked(false);
> setEnabledBorders(Left)
> enabledBorders() /// returns All not Left.
> 
> it'll get updated later but after the changed signal on the FrameSvgItem.
> 
> Do we need to know the old borders when we update? If so can we revert this 
> logic to have a d->oldBorders that gets set at the end of the update method?

it has pendingEnabledBorders because right now the borders are saved only n the 
frame, that we don't know if we can keep it or we'll have to throw it away ( or 
just dereference because some other framesvg instance still needs it)
I don't like it that much as well, but i don't think the new value can be 
assigned right away.
and yes, when repaintblocked is true, it would return the old value... unless 
it would return pendingEnabledBorders in this case

REPOSITORY
  R242 Plasma Framework (Library)

REVISION DETAIL
  https://phabricator.kde.org/D4414

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: mart, #plasma
Cc: davidedmundson, plasma-devel, #frameworks, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol

Reply via email to