18#include <QApplication>
24 if ( mWidgetToKeepFocused )
25 mWidgetToKeepFocused->installEventFilter(
this );
30 if ( mWidgetToKeepFocused )
31 mWidgetToKeepFocused->removeEventFilter(
this );
36 if ( obj == mWidgetToKeepFocused && event &&
37 ( event->type() == QEvent::FocusOut || event->type() == QEvent::FocusAboutToChange ) )
41 return QObject::eventFilter( obj, event );
~QgsFocusKeeper() override
bool eventFilter(QObject *obj, QEvent *event) override