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

Method slotCopy

src/difftextwindow.cpp:404–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404void DiffTextWindow::slotCopy()
405{
406 if(!hasFocus())
407 return;
408
409 const QString curSelection = getSelection();
410
411 if(!curSelection.isEmpty())
412 {
413 QApplication::clipboard()->setText(curSelection, QClipboard::Clipboard);
414 }
415}
416
417void DiffTextWindow::fwdFinishRecalcWordWrap(qint32 visibleTextWidthForPrinting)
418{

Callers

nothing calls this directly

Calls 2

setTextMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected