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

Method rowsInserted

launcher/ui/dialogs/ExportInstanceDialog.cpp:432–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432void ExportInstanceDialog::rowsInserted(QModelIndex parent, int top, int bottom)
433{
434 //WARNING: possible off-by-one?
435 for(int i = top; i < bottom; i++)
436 {
437 auto node = parent.child(i, 0);
438 if(proxyModel->shouldExpand(node))
439 {
440 auto expNode = node.parent();
441 if(!expNode.isValid())
442 {
443 continue;
444 }
445 ui->treeView->expand(node);
446 }
447 }
448}
449
450QString ExportInstanceDialog::ignoreFileName()
451{

Callers

nothing calls this directly

Calls 4

childMethod · 0.80
shouldExpandMethod · 0.80
parentMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected