|
ACF $AcfVersion:0$
|
This class created to avoid an accident changing values in comboBoxes or spinBoxes. More...
#include <CWidgetWheelEventBlocker.h>
Public Types | |
| enum | AffectedWidgets { AW_SPIN_BOXES = 1 << 0 , AW_COMBO_BOXES = 1 << 1 , AW_SLIDERS = 1 << 2 } |
Public Member Functions | |
| CWidgetWheelEventBlocker (QWidget *parentPtr, int flags=AW_SPIN_BOXES|AW_COMBO_BOXES|AW_SLIDERS, bool setStrongFocusToAffectedWidgets=true) | |
Protected Types | |
| typedef QList< QObject * > | ObjectPtrList |
Protected Member Functions | |
| void | FilterWidgets (ObjectPtrList &widgetPtrsList) |
| virtual bool | eventFilter (QObject *objectPtr, QEvent *eventPtr) override |
This class created to avoid an accident changing values in comboBoxes or spinBoxes.
It blocks wheel events while comboBoxes or spinBoxes are have not focus.
Definition at line 18 of file CWidgetWheelEventBlocker.h.
|
protected |
Definition at line 42 of file CWidgetWheelEventBlocker.h.
Definition at line 22 of file CWidgetWheelEventBlocker.h.
| iwidgets::CWidgetWheelEventBlocker::CWidgetWheelEventBlocker | ( | QWidget * | parentPtr, |
| int | flags = AW_SPIN_BOXES|AW_COMBO_BOXES|AW_SLIDERS, |
||
| bool | setStrongFocusToAffectedWidgets = true |
||
| ) |
|
overrideprotectedvirtual |
|
protected |