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

Method slotSelectionEnd

src/pdiff.cpp:1161–1183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1159}
1160
1161void 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
1185void KDiff3App::slotOutputModified(bool bModified)
1186{

Callers

nothing calls this directly

Calls 2

setTextMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected