D20209: Add support for KBookmarkOwner to communicate if it has tabs open

David Hallas noreply at phabricator.kde.org
Tue Apr 23 18:34:45 BST 2019


hallas added inline comments.

INLINE COMMENTS

> dfaure wrote in kbookmarkmenu.cpp:150
> Technically this is only needed if the number of open tabs went from "< 2" to ">= 2" or vice versa.
> When going from, say, 20 to 21, we don't need to refill the menu.
> So the code could be
> 
>   m_bDirty = (d->numberOfOpenTabs < 2) != (numberOfOpenTabs < 2);
>   d->numberOfOpenTabs = numberOfOpenTabs;

Good point :D

> dfaure wrote in kbookmarkmenu.h:104
> All the "unsigned int" in this patch is a bit unusual in Qt/KDE code, we use int everywhere.

Ok - I have changed it to use int all over instead.

REPOSITORY
  R294 KBookmarks

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

To: hallas, #frameworks, ngraham, cfeck, dfaure
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190423/ba3fc528/attachment.html>


More information about the Kde-frameworks-devel mailing list