Changeset View
Changeset View
Standalone View
Standalone View
ui/findbar.cpp
Show First 20 Lines • Show All 191 Lines • ▼ Show 20 Line(s) | 191 | { | |||
---|---|---|---|---|---|
192 | if ( m_search->lineEdit()->isSearchRunning() ) | 192 | if ( m_search->lineEdit()->isSearchRunning() ) | ||
193 | { | 193 | { | ||
194 | m_search->lineEdit()->stopSearch(); | 194 | m_search->lineEdit()->stopSearch(); | ||
195 | } | 195 | } | ||
196 | emit onCloseButtonPressed(); | 196 | emit onCloseButtonPressed(); | ||
197 | close(); | 197 | close(); | ||
198 | } | 198 | } | ||
199 | 199 | | |||
200 | void FindBar::startSearch(const QString & findText) | ||||
aacid: This doesn't really have much to do with findTextOnStartup, other than "it's the only place… | |||||
201 | { | ||||
202 | m_search->lineEdit()->setText( findText ); | ||||
203 | show(); | ||||
204 | } | ||||
205 | | ||||
200 | #include "moc_findbar.cpp" | 206 | #include "moc_findbar.cpp" |
This doesn't really have much to do with findTextOnStartup, other than "it's the only place it's used for now"
But the function should be something more like "startSearch"