Show last global search results again when focusing back in global search box

(cherry picked from commit 898e1e2ed1)
This commit is contained in:
Arnaud Bienner 2011-12-05 22:13:58 +01:00 committed by David Sansome
parent 8441c565c7
commit 7dfbc2d2e1
1 changed files with 4 additions and 0 deletions

View File

@ -367,6 +367,10 @@ bool GlobalSearchWidget::EventFilterSearchWidget(QObject* o, QEvent* e) {
return true;
break;
case QEvent::FocusIn:
RepositionPopup();
break;
case QEvent::KeyPress: {
QKeyEvent* ke = static_cast<QKeyEvent*>(e);
const int key = ke->key();