MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / filterAcceptsRow

Method filterAcceptsRow

launcher/minecraft/mod/ResourceFolderModel.cpp:763–772  ·  view source on GitHub ↗

Standard Proxy Model for createFilterProxyModel */

Source from the content-addressed store, hash-verified

761
762/* Standard Proxy Model for createFilterProxyModel */
763bool 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
774bool ResourceFolderModel::ProxyModel::lessThan(const QModelIndex& source_left, const QModelIndex& source_right) const
775{

Callers

nothing calls this directly

Calls 2

atMethod · 0.45
applyFilterMethod · 0.45

Tested by

no test coverage detected