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

Method getTasks

launcher/ui/dialogs/ModUpdateDialog.cpp:490–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488}
489
490auto ModUpdateDialog::getTasks() -> const QList<ResourceDownloadTask::Ptr>
491{
492 QList<ResourceDownloadTask::Ptr> list;
493
494 auto* item = ui->modTreeWidget->topLevelItem(0);
495
496 for (int i = 1; item != nullptr; ++i) {
497 if (item->checkState(0) == Qt::CheckState::Checked) {
498 list.push_back(m_tasks.find(item->text(0)).value());
499 }
500
501 item = ui->modTreeWidget->topLevelItem(i);
502 }
503
504 return list;
505}

Callers 6

downloadTPsMethod · 0.45
installModsMethod · 0.45
updateModsMethod · 0.45
changeModVersionMethod · 0.45
downloadRPsMethod · 0.45
downloadShadersMethod · 0.45

Calls 3

valueMethod · 0.80
findMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected