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

Method add

launcher/InstanceList.cpp:539–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537}
538
539void InstanceList::add(const QList<InstancePtr>& t)
540{
541 beginInsertRows(QModelIndex(), m_instances.count(), m_instances.count() + t.size() - 1);
542 m_instances.append(t);
543 for (auto& ptr : t) {
544 connect(ptr.get(), &BaseInstance::propertiesChanged, this, &InstanceList::propertiesChanged);
545 }
546 endInsertRows();
547}
548
549void InstanceList::resumeWatch()
550{

Callers 1

handleDataMigrationMethod · 0.45

Calls 5

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

Tested by

no test coverage detected