BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
LostFocusFilter Class Reference

Description

Event filter to prevent lost of focus by custom material editor.

Definition at line 63 of file CustomEventFilters.h.

Inheritance diagram for LostFocusFilter:
[legend]
Collaboration diagram for LostFocusFilter:
[legend]

Public Member Functions

 LostFocusFilter (QObject *parent=nullptr)
 

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *event) override
 

Constructor & Destructor Documentation

◆ LostFocusFilter()

LostFocusFilter::LostFocusFilter ( QObject *  parent = nullptr)

Definition at line 93 of file CustomEventFilters.cpp.

94  : QObject(parent)
95 {
96 }

Member Function Documentation

◆ eventFilter()

bool LostFocusFilter::eventFilter ( QObject *  obj,
QEvent *  event 
)
overrideprotected

Definition at line 98 of file CustomEventFilters.cpp.

99 {
100  if (event->type() == QEvent::FocusOut)
101  return true;
102 
103  return QObject::eventFilter(obj, event);
104 }

The documentation for this class was generated from the following files: