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

Method getTasks

launcher/ui/dialogs/ModUpdateDialog.cpp:403–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403auto ModUpdateDialog::getTasks() -> const QList<ModDownloadTask*>
404{
405 QList<ModDownloadTask*> list;
406
407 auto* item = ui->modTreeWidget->topLevelItem(0);
408
409 for (int i = 1; item != nullptr; ++i) {
410 if (item->checkState(0) == Qt::CheckState::Checked) {
411 list.push_back(m_tasks.find(item->text(0)).value());
412 }
413
414 item = ui->modTreeWidget->topLevelItem(i);
415 }
416
417 return list;
418}

Callers 2

installModsMethod · 0.45
updateModsMethod · 0.45

Calls 2

findMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected