| 1159 | } |
| 1160 | |
| 1161 | void KDiff3App::slotSelectionEnd() |
| 1162 | { |
| 1163 | if(gOptions->m_bAutoCopySelection) |
| 1164 | { |
| 1165 | slotEditCopy(); |
| 1166 | } |
| 1167 | else |
| 1168 | { |
| 1169 | QClipboard* clipBoard = QApplication::clipboard(); |
| 1170 | |
| 1171 | if(clipBoard->supportsSelection()) |
| 1172 | { |
| 1173 | QString sCurSelection = getSelection(); |
| 1174 | |
| 1175 | if(!sCurSelection.isEmpty()) |
| 1176 | { |
| 1177 | clipBoard->setText(sCurSelection, QClipboard::Selection); |
| 1178 | } |
| 1179 | } |
| 1180 | } |
| 1181 | |
| 1182 | Q_EMIT updateAvailabilities(); |
| 1183 | } |
| 1184 | |
| 1185 | void KDiff3App::slotOutputModified(bool bModified) |
| 1186 | { |