mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-01 11:56:45 +01:00
Change a dodgy variable name
This commit is contained in:
parent
58e3a3b676
commit
3e189f53bc
@ -57,7 +57,7 @@ GlobalSearchWidget::GlobalSearchWidget(QWidget* parent)
|
||||
back_proxy_(new GlobalSearchSortModel(this)),
|
||||
current_proxy_(front_proxy_),
|
||||
view_(new QListView),
|
||||
eat_focus_out_(false),
|
||||
consume_focus_out_(false),
|
||||
swap_models_timer_(new QTimer(this)),
|
||||
background_(":allthethings.png"),
|
||||
desktop_(qApp->desktop()),
|
||||
@ -315,7 +315,7 @@ bool GlobalSearchWidget::eventFilter(QObject* o, QEvent* e) {
|
||||
bool GlobalSearchWidget::EventFilterSearchWidget(QObject* o, QEvent* e) {
|
||||
switch (e->type()) {
|
||||
case QEvent::FocusOut:
|
||||
if (eat_focus_out_ && view_->isVisible())
|
||||
if (consume_focus_out_ && view_->isVisible())
|
||||
return true;
|
||||
break;
|
||||
|
||||
@ -392,9 +392,9 @@ bool GlobalSearchWidget::EventFilterPopup(QObject*, QEvent* e) {
|
||||
|
||||
// Send the event to the widget. If the widget accepted the event, do nothing
|
||||
// If the widget did not accept the event, provide a default implementation
|
||||
eat_focus_out_ = false;
|
||||
consume_focus_out_ = false;
|
||||
(static_cast<QObject *>(ui_->search))->event(ke);
|
||||
eat_focus_out_ = true;
|
||||
consume_focus_out_ = true;
|
||||
|
||||
if (e->isAccepted() || !view_->isVisible()) {
|
||||
// widget lost focus, hide the popup
|
||||
|
@ -133,7 +133,7 @@ private:
|
||||
QSortFilterProxyModel* current_proxy_;
|
||||
|
||||
QListView* view_;
|
||||
bool eat_focus_out_;
|
||||
bool consume_focus_out_;
|
||||
|
||||
QTimer* swap_models_timer_;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user