Display global search results when focusing on global search box only if reason is 'mouseFocus'
(cherry picked from commit 0322c2bbf1
)
This commit is contained in:
parent
6fc02c364a
commit
68a1ac545f
|
@ -367,9 +367,13 @@ bool GlobalSearchWidget::EventFilterSearchWidget(QObject* o, QEvent* e) {
|
|||
return true;
|
||||
break;
|
||||
|
||||
case QEvent::FocusIn:
|
||||
RepositionPopup();
|
||||
case QEvent::FocusIn: {
|
||||
QFocusEvent* fe = static_cast<QFocusEvent*>(e);
|
||||
if (fe->reason() == Qt::MouseFocusReason) {
|
||||
RepositionPopup();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case QEvent::KeyPress: {
|
||||
QKeyEvent* ke = static_cast<QKeyEvent*>(e);
|
||||
|
|
Loading…
Reference in New Issue