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

Method add

launcher/InstanceList.cpp:491–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491void InstanceList::add(const QList<InstancePtr>& t)
492{
493 beginInsertRows(QModelIndex(), m_instances.count(), m_instances.count() + t.size() - 1);
494 m_instances.append(t);
495 for (auto& ptr : t) {
496 connect(ptr.get(), &BaseInstance::propertiesChanged, this, &InstanceList::propertiesChanged);
497 }
498 endInsertRows();
499}
500
501void InstanceList::resumeWatch()
502{

Callers

nothing calls this directly

Calls 5

QModelIndexClass · 0.85
appendMethod · 0.80
countMethod · 0.45
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected