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

Method rowsInserted

launcher/ui/dialogs/ExportInstanceDialog.cpp:458–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456}
457
458void ExportInstanceDialog::rowsInserted(QModelIndex parent, int top, int bottom)
459{
460 //WARNING: possible off-by-one?
461 for(int i = top; i < bottom; i++)
462 {
463 auto node = proxyModel->index(i, 0, parent);
464 if(proxyModel->shouldExpand(node))
465 {
466 auto expNode = node.parent();
467 if(!expNode.isValid())
468 {
469 continue;
470 }
471 ui->treeView->expand(node);
472 }
473 }
474}
475
476QString ExportInstanceDialog::ignoreFileName()
477{

Callers

nothing calls this directly

Calls 4

shouldExpandMethod · 0.80
indexMethod · 0.45
parentMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected