Commit d03f33e4 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Eike Ziller
Browse files

Find: Allow empty prefix for completers



Change-Id: Ie59a7613775c7e5ab19524adc0c5658a81532e95
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent 9f98c278
......@@ -278,10 +278,15 @@ bool FindToolBar::eventFilter(QObject *obj, QEvent *event)
if (event->type() == QEvent::KeyPress) {
QKeyEvent *ke = static_cast<QKeyEvent *>(event);
if (ke->key() == Qt::Key_Down) {
if (obj == m_ui.findEdit)
if (obj == m_ui.findEdit) {
if (m_ui.findEdit->text().isEmpty())
m_findCompleter->setCompletionPrefix(QString());
m_findCompleter->complete();
else if (obj == m_ui.replaceEdit)
} else if (obj == m_ui.replaceEdit) {
if (m_ui.replaceEdit->text().isEmpty())
m_replaceCompleter->setCompletionPrefix(QString());
m_replaceCompleter->complete();
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment