Automatically start search after replacing spelling error
This commit is contained in:
parent
5a3566fc23
commit
20a5a01f9a
1 changed files with 5 additions and 2 deletions
|
@ -240,6 +240,9 @@ void SSearch::onWordReplace(const QString& o, const QString& n)
|
||||||
exp.setCaseSensitivity(Qt::CaseInsensitive);
|
exp.setCaseSensitivity(Qt::CaseInsensitive);
|
||||||
txt.replace(exp, n);
|
txt.replace(exp, n);
|
||||||
queryText->setEditText(txt);
|
queryText->setEditText(txt);
|
||||||
|
Qt::KeyboardModifiers mods = QApplication::keyboardModifiers ();
|
||||||
|
if (mods == Qt::NoModifier)
|
||||||
|
startSimpleSearch();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SSearch::setAnyTermMode()
|
void SSearch::setAnyTermMode()
|
||||||
|
@ -463,8 +466,8 @@ bool SSearch::eventFilter(QObject *, QEvent *event)
|
||||||
event->type() == QEvent::Paint)
|
event->type() == QEvent::Paint)
|
||||||
return false;
|
return false;
|
||||||
LOGDEB2(("SSearch::eventFilter: target %p (%p) type %s\n",
|
LOGDEB2(("SSearch::eventFilter: target %p (%p) type %s\n",
|
||||||
target, queryText->lineEdit(),
|
target, queryText->lineEdit(),
|
||||||
eventTypeToStr(event->type())));
|
eventTypeToStr(event->type())));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (event->type() == QEvent::KeyPress) {
|
if (event->type() == QEvent::KeyPress) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue