| 1071 | } |
| 1072 | |
| 1073 | void KDiff3App::slotSplitDiff() |
| 1074 | { |
| 1075 | LineRef firstLine; |
| 1076 | LineRef lastLine; |
| 1077 | QPointer<DiffTextWindow> pDTW = m_pDiffTextWindow1; |
| 1078 | pDTW->getSelectionRange(&firstLine, &lastLine, eD3LLineCoords); |
| 1079 | |
| 1080 | if(!firstLine.isValid()) |
| 1081 | { |
| 1082 | pDTW = m_pDiffTextWindow2; |
| 1083 | pDTW->getSelectionRange(&firstLine, &lastLine, eD3LLineCoords); |
| 1084 | } |
| 1085 | if(!firstLine.isValid()) |
| 1086 | { |
| 1087 | pDTW = m_pDiffTextWindow3; |
| 1088 | pDTW->getSelectionRange(&firstLine, &lastLine, eD3LLineCoords); |
| 1089 | } |
| 1090 | if(pDTW && firstLine.isValid()) |
| 1091 | { |
| 1092 | pDTW->resetSelection(); |
| 1093 | |
| 1094 | m_pMergeResultWindow->slotSplitDiff(firstLine, lastLine); |
| 1095 | } |
| 1096 | } |
| 1097 | |
| 1098 | void KDiff3App::slotJoinDiffs() |
| 1099 | { |
nothing calls this directly
no test coverage detected