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

Method sourceDataChanged

launcher/VersionProxyModel.cpp:283–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283void VersionProxyModel::sourceDataChanged(const QModelIndex& source_top_left, const QModelIndex& source_bottom_right)
284{
285 if (source_top_left.parent() != source_bottom_right.parent())
286 return;
287
288 // whole row is getting changed
289 auto topLeft = createIndex(source_top_left.row(), 0);
290 auto bottomRight = createIndex(source_bottom_right.row(), columnCount() - 1);
291 emit dataChanged(topLeft, bottomRight);
292}
293
294void VersionProxyModel::setSourceModel(QAbstractItemModel* replacingRaw)
295{

Callers

nothing calls this directly

Calls 1

parentMethod · 0.45

Tested by

no test coverage detected