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

Method removeBranch

kdevplatform/vcs/models/brancheslistmodel.cpp:129–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void BranchesListModel::removeBranch(const QString& branch)
130{
131 Q_D(BranchesListModel);
132
133 KDevelop::VcsJob *branchJob = d->dvcsplugin->deleteBranch(d->repo, branch);
134
135 qCDebug(VCS) << "Removing branch:" << branch;
136 if (branchJob->exec()) {
137 const QList<QStandardItem*> items = findItems(branch);
138 for (QStandardItem* item : items) {
139 removeRow(item->row());
140 }
141 }
142}
143
144QUrl BranchesListModel::repository() const
145{

Callers 1

deleteBranchMethod · 0.80

Calls 3

execMethod · 0.80
deleteBranchMethod · 0.45
rowMethod · 0.45

Tested by

no test coverage detected