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

Method documentActivated

plugins/patchreview/patchreviewtoolview.cpp:524–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524void PatchReviewToolView::documentActivated( IDocument* doc ) {
525 if( !doc )
526 return;
527
528 if ( !m_plugin->modelList() )
529 return;
530
531 const auto index = VcsFileChangesModel::statusIndexForUrl(*m_fileSortProxyModel, QModelIndex{}, doc->url());
532 m_editPatch.filesList->setCurrentIndex(index);
533}
534
535void PatchReviewToolView::runTests()
536{

Callers

nothing calls this directly

Calls 3

modelListMethod · 0.80
setCurrentIndexMethod · 0.80
urlMethod · 0.45

Tested by

no test coverage detected