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

Method sourceDataChanged

launcher/VersionProxyModel.cpp:290–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290void VersionProxyModel::sourceDataChanged(const QModelIndex &source_top_left,
291 const QModelIndex &source_bottom_right)
292{
293 if(source_top_left.parent() != source_bottom_right.parent())
294 return;
295
296 // whole row is getting changed
297 auto topLeft = createIndex(source_top_left.row(), 0);
298 auto bottomRight = createIndex(source_bottom_right.row(), columnCount() - 1);
299 emit dataChanged(topLeft, bottomRight);
300}
301
302void VersionProxyModel::setSourceModel(QAbstractItemModel *replacingRaw)
303{

Callers

nothing calls this directly

Calls 1

parentMethod · 0.45

Tested by

no test coverage detected