MCPcopy Create free account
hub / github.com/KDE/kdevelop / setAllChecked

Method setAllChecked

kdevplatform/vcs/models/vcsfilechangesmodel.cpp:206–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206void VcsFileChangesModel::setAllChecked(bool checked)
207{
208 Q_D(VcsFileChangesModel);
209
210 if(!d->allowSelection)
211 return;
212 QStandardItem* parent = invisibleRootItem();
213 for(int i = 0, c = parent->rowCount(); i < c; i++) {
214 QStandardItem* item = parent->child(i);
215 item->setCheckState(checked ? Qt::Checked : Qt::Unchecked);
216 }
217}
218
219QList<QUrl> VcsFileChangesModel::checkedUrls(QStandardItem *parent) const
220{

Callers 2

deselectAllMethod · 0.80
selectAllMethod · 0.80

Calls 2

rowCountMethod · 0.45
childMethod · 0.45

Tested by

no test coverage detected