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

Function runSynchronously

kdevplatform/vcs/models/brancheslistmodel.cpp:87–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85};
86
87static QVariant runSynchronously(KDevelop::VcsJob* job)
88{
89 job->setVerbosity(KDevelop::OutputJob::Silent);
90 QVariant ret;
91 if(job->exec() && job->status()==KDevelop::VcsJob::JobSucceeded) {
92 ret = job->fetchResults();
93 }
94 delete job;
95 return ret;
96}
97
98BranchesListModel::BranchesListModel(QObject* parent)
99 : QStandardItemModel(parent)

Callers 2

refreshMethod · 0.70
currentBranchMethod · 0.70

Calls 4

setVerbosityMethod · 0.80
execMethod · 0.80
statusMethod · 0.45
fetchResultsMethod · 0.45

Tested by

no test coverage detected