| 1618 | } |
| 1619 | |
| 1620 | void 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 | |
| 1638 | void KDiff3App::slotScrollToH(qsizetype p) |
| 1639 | { |
nothing calls this directly
no test coverage detected