| 1096 | } |
| 1097 | |
| 1098 | void 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 | |
| 1125 | void KDiff3App::slotConfigure() |
| 1126 | { |
nothing calls this directly
no test coverage detected