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

Method deselectedMods

launcher/ui/dialogs/ReviewMessageBox.cpp:42–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42auto ReviewMessageBox::deselectedMods() -> QStringList
43{
44 QStringList list;
45
46 auto* item = ui->modTreeWidget->topLevelItem(0);
47
48 for (int i = 1; item != nullptr; ++i) {
49 if (item->checkState(0) == Qt::CheckState::Unchecked) {
50 list.append(item->text(0));
51 }
52
53 item = ui->modTreeWidget->topLevelItem(i);
54 }
55
56 return list;
57}

Callers 1

confirmMethod · 0.80

Calls 2

appendMethod · 0.80
textMethod · 0.45

Tested by

no test coverage detected