| 397 | } |
| 398 | |
| 399 | void 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 | |
| 417 | QUrl PatchReviewPlugin::urlForFileModel(const KompareDiff2::DiffModel* model) const |
| 418 | { |
nothing calls this directly
no test coverage detected