Commit e9bf505c authored by Denis Dzyubenko's avatar Denis Dzyubenko
Browse files

Show completer on arrow down key in find toolbar.

Reviewed-by: Thorbjorn Lindeijer
parent 58ab6111
......@@ -230,6 +230,16 @@ FindToolBar::~FindToolBar()
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)
m_findCompleter->complete();
else if (obj == m_ui.replaceEdit)
m_replaceCompleter->complete();
}
}
if ((obj == m_ui.findEdit || obj == m_findCompleter->popup())
&& event->type() == QEvent::KeyPress) {
QKeyEvent *ke = static_cast<QKeyEvent *>(event);
......
Supports Markdown
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