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

Method switchToEmptyReviewArea

plugins/patchreview/patchreview.cpp:399–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399void PatchReviewPlugin::switchToEmptyReviewArea()
400{
401 const auto allAreas = ICore::self()->uiController()->allAreas();
402 for (Sublime::Area* area : allAreas) {
403 if (area->objectName() == QLatin1String("review")) {
404 area->setWorkingSet(QString(), false);
405 }
406 }
407
408 QString areaName = ICore::self()->uiController()->activeArea()->objectName();
409 if (areaName != QLatin1String("review")) {
410 m_lastArea = areaName;
411 ICore::self()->uiController()->switchToArea(QStringLiteral("review"), KDevelop::IUiController::ThisWindow);
412 } else {
413 m_lastArea.clear();
414 }
415}
416
417QUrl PatchReviewPlugin::urlForFileModel(const KompareDiff2::DiffModel* model) const
418{

Callers

nothing calls this directly

Calls 7

allAreasMethod · 0.80
uiControllerMethod · 0.80
activeAreaMethod · 0.80
switchToAreaMethod · 0.80
QStringClass · 0.50
setWorkingSetMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected