MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / validateIndex

Method validateIndex

launcher/minecraft/mod/ResourceFolderModel.cpp:382–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382bool ResourceFolderModel::validateIndex(const QModelIndex& index) const
383{
384 if (!index.isValid())
385 return false;
386
387 int row = index.row();
388 if (row < 0 || row >= m_resources.size())
389 return false;
390
391 return true;
392}
393
394QVariant ResourceFolderModel::data(const QModelIndex& index, int role) const
395{

Callers

nothing calls this directly

Calls 2

isValidMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected