Standard Proxy Model for createFilterProxyModel */
| 761 | |
| 762 | /* Standard Proxy Model for createFilterProxyModel */ |
| 763 | bool ResourceFolderModel::ProxyModel::filterAcceptsRow(int source_row, [[maybe_unused]] const QModelIndex& source_parent) const |
| 764 | { |
| 765 | auto* model = qobject_cast<ResourceFolderModel*>(sourceModel()); |
| 766 | if (!model) |
| 767 | return true; |
| 768 | |
| 769 | const auto& resource = model->at(source_row); |
| 770 | |
| 771 | return resource.applyFilter(filterRegularExpression()); |
| 772 | } |
| 773 | |
| 774 | bool ResourceFolderModel::ProxyModel::lessThan(const QModelIndex& source_left, const QModelIndex& source_right) const |
| 775 | { |
nothing calls this directly
no test coverage detected