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

Method diffReady

kdevplatform/vcs/widgets/vcsdiffwidget.cpp:35–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 }
34
35 void diffReady( KDevelop::VcsJob* job )
36 {
37 if( job != m_job )
38 return;
39 KDevelop::VcsDiff diff = m_job->fetchResults().value<KDevelop::VcsDiff>();
40
41 // Try using the patch-review plugin if possible
42 auto* patch = new VCSDiffPatchSource(diff);
43
44 if(showVcsDiff(patch))
45 {
46 q->deleteLater();
47 return;
48 }else{
49 delete patch;
50 }
51
52 qCDebug(VCS) << "diff:" << diff.diff();
53 m_ui->diffDisplay->setPlainText( diff.diff() );
54 m_ui->diffDisplay->setReadOnly( true );
55
56 }
57
58};
59

Callers 1

VcsDiffWidgetMethod · 0.45

Calls 3

showVcsDiffFunction · 0.85
fetchResultsMethod · 0.45
diffMethod · 0.45

Tested by

no test coverage detected