D25326: Move Plasma's SortFilterProxyModel into KItemModel's QML plugin

David Edmundson noreply at phabricator.kde.org
Wed Dec 11 23:29:40 GMT 2019


davidedmundson updated this revision to Diff 71329.
davidedmundson added a comment.


  Implement new arguments for filterAcceptsRow passing source_row, source_parent.
  
  It makes for slightly heavier messier JS, but it also allows for super flexibility 
  beyond just having the value retried and it's familiar for Qt programmers.
  
  Maybe we should add an invokable
  sourceData(int source_row, int source_column, QModelIndex source_parent) to save a
  bit of boilerplate?

REPOSITORY
  R275 KItemModels

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D25326?vs=71327&id=71329

BRANCH
  master

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

AFFECTED FILES
  autotests/CMakeLists.txt
  autotests/ksortfilterproxymodel_qml.cpp
  autotests/ksortfilterproxymodeltest.qml
  src/qml/CMakeLists.txt
  src/qml/ksortfilterproxymodel.cpp
  src/qml/ksortfilterproxymodel.h
  src/qml/plugin.cpp

To: davidedmundson
Cc: broulik, ahiemstra, mart, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20191211/0335f5bb/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list