D21336: Get PaginateModel class ready for frameworks

Eike Hein noreply at phabricator.kde.org
Thu May 23 07:26:06 BST 2019


hein added a comment.


  I wouldn't call this implementation ready for frameworks, though - it just resets all the time, which is very slow as it forces views to destroy and recreate delegates instead of just updating them. A better implementation would just (re)filter source rows corresponding to the current page. This could be done as a subclass of `QSortFilterProxyModel` or custom; KItemModels' `KRearrangeColumnsProxyModel` can serve as inspiration to some degree. As it stands I wouldn't uactually use this if it was in the framework.

REPOSITORY
  R134 Discover Software Store

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

To: apol, davidedmundson
Cc: hein, davidedmundson, plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190523/fee8e930/attachment.html>


More information about the Plasma-devel mailing list