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)),
|
back_proxy_(new GlobalSearchSortModel(this)),
|
||||||
current_proxy_(front_proxy_),
|
current_proxy_(front_proxy_),
|
||||||
view_(new QListView),
|
view_(new QListView),
|
||||||
eat_focus_out_(false),
|
consume_focus_out_(false),
|
||||||
swap_models_timer_(new QTimer(this)),
|
swap_models_timer_(new QTimer(this)),
|
||||||
background_(":allthethings.png"),
|
background_(":allthethings.png"),
|
||||||
desktop_(qApp->desktop()),
|
desktop_(qApp->desktop()),
|
||||||
|
@ -315,7 +315,7 @@ bool GlobalSearchWidget::eventFilter(QObject* o, QEvent* e) {
|
||||||
bool GlobalSearchWidget::EventFilterSearchWidget(QObject* o, QEvent* e) {
|
bool GlobalSearchWidget::EventFilterSearchWidget(QObject* o, QEvent* e) {
|
||||||
switch (e->type()) {
|
switch (e->type()) {
|
||||||
case QEvent::FocusOut:
|
case QEvent::FocusOut:
|
||||||
if (eat_focus_out_ && view_->isVisible())
|
if (consume_focus_out_ && view_->isVisible())
|
||||||
return true;
|
return true;
|
||||||
break;
|
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
|
// 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
|
// 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);
|
(static_cast<QObject *>(ui_->search))->event(ke);
|
||||||
eat_focus_out_ = true;
|
consume_focus_out_ = true;
|
||||||
|
|
||||||
if (e->isAccepted() || !view_->isVisible()) {
|
if (e->isAccepted() || !view_->isVisible()) {
|
||||||
// widget lost focus, hide the popup
|
// widget lost focus, hide the popup
|
||||||
|
|
|
@ -133,7 +133,7 @@ private:
|
||||||
QSortFilterProxyModel* current_proxy_;
|
QSortFilterProxyModel* current_proxy_;
|
||||||
|
|
||||||
QListView* view_;
|
QListView* view_;
|
||||||
bool eat_focus_out_;
|
bool consume_focus_out_;
|
||||||
|
|
||||||
QTimer* swap_models_timer_;
|
QTimer* swap_models_timer_;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue