Changeset View
Changeset View
Standalone View
Standalone View
src/findreplace/kfinddialog.h
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | |||||
48 | * return; | 48 | * return; | ||
49 | * | 49 | * | ||
50 | * // proceed with KFind from here | 50 | * // proceed with KFind from here | ||
51 | * \endcode | 51 | * \endcode | ||
52 | * | 52 | * | ||
53 | * To create a non-modal find dialog: | 53 | * To create a non-modal find dialog: | ||
54 | * \code | 54 | * \code | ||
55 | * if (m_findDialog) { | 55 | * if (m_findDialog) { | ||
56 | * KWindowSystem::activateWindow(m_findDialog->winId()); | 56 | * m_findDialog->activateWindow(); | ||
57 | * } else { | 57 | * } else { | ||
58 | * m_findDialog = new KFindDialog(...); | 58 | * m_findDialog = new KFindDialog(...); | ||
59 | * connect(m_findDialog, &KFindDialog::okClicked, this, [this] { | 59 | * connect(m_findDialog, &KFindDialog::okClicked, this, [this] { | ||
60 | * m_findDialog->close(); | 60 | * m_findDialog->close(); | ||
61 | * delete m_find; | 61 | * delete m_find; | ||
62 | * m_find = new KFind(m_findDialog->pattern(), m_findDialog->options(), this); | 62 | * m_find = new KFind(m_findDialog->pattern(), m_findDialog->options(), this); | ||
63 | * // ... see KFind documentation for what else should be done here | 63 | * // ... see KFind documentation for what else should be done here | ||
64 | * }); | 64 | * }); | ||
▲ Show 20 Lines • Show All 174 Lines • Show Last 20 Lines |