MCPcopy Create free account
hub / github.com/MultiMC/Launcher / setData

Method setData

launcher/minecraft/mod/ModFolderModel.cpp:399–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399bool ModFolderModel::setData(const QModelIndex &index, const QVariant &value, int role)
400{
401 if (index.row() < 0 || index.row() >= rowCount(index) || !index.isValid())
402 {
403 return false;
404 }
405
406 if (role == Qt::CheckStateRole)
407 {
408 return setModStatus(index.row(), Toggle);
409 }
410 return false;
411}
412
413bool ModFolderModel::setModStatus(int row, ModFolderModel::ModStatusAction action)
414{

Callers

nothing calls this directly

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected