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

Method refresh

kdevplatform/vcs/models/brancheslistmodel.cpp:167–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void BranchesListModel::refresh()
168{
169 Q_D(BranchesListModel);
170
171 const QStringList branches = runSynchronously(d->dvcsplugin->branches(d->repo)).toStringList();
172 QString curBranch = runSynchronously(d->dvcsplugin->currentBranch(d->repo)).toString();
173
174 for (const QString& branch : branches) {
175 appendRow(new BranchItem(branch, branch == curBranch));
176 }
177}
178
179void BranchesListModel::resetCurrent()
180{

Callers

nothing calls this directly

Calls 5

branchesMethod · 0.80
runSynchronouslyFunction · 0.70
toStringListMethod · 0.45
toStringMethod · 0.45
currentBranchMethod · 0.45

Tested by

no test coverage detected