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

Method sourceDataChanged

launcher/VersionProxyModel.cpp:328–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328void VersionProxyModel::sourceDataChanged(const QModelIndex &source_top_left,
329 const QModelIndex &source_bottom_right)
330{
331 if(source_top_left.parent() != source_bottom_right.parent())
332 return;
333
334 // whole row is getting changed
335 auto topLeft = createIndex(source_top_left.row(), 0);
336 auto bottomRight = createIndex(source_bottom_right.row(), columnCount() - 1);
337 emit dataChanged(topLeft, bottomRight);
338}
339
340void VersionProxyModel::setSourceModel(QAbstractItemModel *replacingRaw)
341{

Callers

nothing calls this directly

Calls 1

parentMethod · 0.45

Tested by

no test coverage detected