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

Method slotEditFind

src/pdiff.cpp:1620–1636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1618}
1619
1620void KDiff3App::slotEditFind()
1621{
1622 m_pFindDialog->restartFind();
1623
1624 // Use currently selected text:
1625 QString sCurSelection = getSelection();
1626
1627 if(!sCurSelection.isEmpty() && !sCurSelection.contains('\n'))
1628 {
1629 m_pFindDialog->m_pSearchString->setText(sCurSelection);
1630 }
1631
1632 if(QDialog::Accepted == m_pFindDialog->exec())
1633 {
1634 slotEditFindNext();
1635 }
1636}
1637
1638void KDiff3App::slotScrollToH(qsizetype p)
1639{

Callers

nothing calls this directly

Calls 3

restartFindMethod · 0.80
setTextMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected