Skip to content

Emit countChanged on layoutChanged

We need to emit countChanged every time size of the model changes. Usually listening on rowsInserted and rowsRemoved is enought, but if source model is of type QSortFilterProxyModel then it is possible that rows are removed but layoutChanged is emitted. Check: https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/itemmodels/qsortfilterproxymodel.cpp?h=5.15.2#n1473

BUG: 437519

Edited by Konrad Materka

Merge request reports