|
a/src/qtgui/ssearch_w.cpp |
|
b/src/qtgui/ssearch_w.cpp |
|
... |
|
... |
238 |
QString txt = queryText->currentText();
|
238 |
QString txt = queryText->currentText();
|
239 |
QRegExp exp = QRegExp(QString("\\b") + o + QString("\\b"));
|
239 |
QRegExp exp = QRegExp(QString("\\b") + o + QString("\\b"));
|
240 |
exp.setCaseSensitivity(Qt::CaseInsensitive);
|
240 |
exp.setCaseSensitivity(Qt::CaseInsensitive);
|
241 |
txt.replace(exp, n);
|
241 |
txt.replace(exp, n);
|
242 |
queryText->setEditText(txt);
|
242 |
queryText->setEditText(txt);
|
|
|
243 |
Qt::KeyboardModifiers mods = QApplication::keyboardModifiers ();
|
|
|
244 |
if (mods == Qt::NoModifier)
|
|
|
245 |
startSimpleSearch();
|
243 |
}
|
246 |
}
|
244 |
|
247 |
|
245 |
void SSearch::setAnyTermMode()
|
248 |
void SSearch::setAnyTermMode()
|
246 |
{
|
249 |
{
|
247 |
searchTypCMB->setCurrentIndex(SST_ANY);
|
250 |
searchTypCMB->setCurrentIndex(SST_ANY);
|
|
... |
|
... |
461 |
if (event->type() == QEvent::Timer ||
|
464 |
if (event->type() == QEvent::Timer ||
|
462 |
event->type() == QEvent::UpdateRequest ||
|
465 |
event->type() == QEvent::UpdateRequest ||
|
463 |
event->type() == QEvent::Paint)
|
466 |
event->type() == QEvent::Paint)
|
464 |
return false;
|
467 |
return false;
|
465 |
LOGDEB2(("SSearch::eventFilter: target %p (%p) type %s\n",
|
468 |
LOGDEB2(("SSearch::eventFilter: target %p (%p) type %s\n",
|
466 |
target, queryText->lineEdit(),
|
469 |
target, queryText->lineEdit(),
|
467 |
eventTypeToStr(event->type())));
|
470 |
eventTypeToStr(event->type())));
|
468 |
#endif
|
471 |
#endif
|
469 |
|
472 |
|
470 |
if (event->type() == QEvent::KeyPress) {
|
473 |
if (event->type() == QEvent::KeyPress) {
|
471 |
QKeyEvent *ke = (QKeyEvent *)event;
|
474 |
QKeyEvent *ke = (QKeyEvent *)event;
|
472 |
LOGDEB1(("SSearch::eventFilter: keyPress (m_escape %d) key %d\n",
|
475 |
LOGDEB1(("SSearch::eventFilter: keyPress (m_escape %d) key %d\n",
|