MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / validateIndex

Method validateIndex

launcher/minecraft/mod/ResourceFolderModel.cpp:395–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395bool ResourceFolderModel::validateIndex(const QModelIndex& index) const
396{
397 if (!index.isValid())
398 return false;
399
400 int row = index.row();
401 if (row < 0 || row >= m_resources.size())
402 return false;
403
404 return true;
405}
406
407QVariant ResourceFolderModel::data(const QModelIndex& index, int role) const
408{

Callers

nothing calls this directly

Calls 2

isValidMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected