MCPcopy Create free account
hub / github.com/KDE/kdiff3 / slotJoinDiffs

Method slotJoinDiffs

src/pdiff.cpp:1098–1123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1096}
1097
1098void KDiff3App::slotJoinDiffs()
1099{
1100 LineRef firstLine;
1101 LineRef lastLine;
1102 QPointer<DiffTextWindow> pDTW = nullptr;
1103
1104 pDTW = m_pDiffTextWindow1;
1105 pDTW->getSelectionRange(&firstLine, &lastLine, eD3LLineCoords);
1106
1107 if(!firstLine.isValid())
1108 {
1109 pDTW = m_pDiffTextWindow2;
1110 pDTW->getSelectionRange(&firstLine, &lastLine, eD3LLineCoords);
1111 }
1112 if(!firstLine.isValid())
1113 {
1114 pDTW = m_pDiffTextWindow3;
1115 pDTW->getSelectionRange(&firstLine, &lastLine, eD3LLineCoords);
1116 }
1117 if(pDTW && firstLine.isValid())
1118 {
1119 pDTW->resetSelection();
1120
1121 m_pMergeResultWindow->slotJoinDiffs(firstLine, lastLine);
1122 }
1123}
1124
1125void KDiff3App::slotConfigure()
1126{

Callers

nothing calls this directly

Calls 3

getSelectionRangeMethod · 0.80
isValidMethod · 0.45
resetSelectionMethod · 0.45

Tested by

no test coverage detected