Krita Source Code Documentation
Loading...
Searching...
No Matches
SinglePressEventEater Struct Reference
+ Inheritance diagram for SinglePressEventEater:

Public Member Functions

bool eventFilter (QObject *, QEvent *event) override
 

Private Attributes

bool hungry = true
 

Detailed Description

Definition at line 23 of file KisPopupWidgetAction.cpp.

Member Function Documentation

◆ eventFilter()

bool SinglePressEventEater::eventFilter ( QObject * ,
QEvent * event )
inlineoverride

Definition at line 25 of file KisPopupWidgetAction.cpp.

25 {
26 if (hungry && event->type() == QEvent::MouseButtonPress) {
27 hungry = false;
28 return true;
29 }
30
31 return false;
32 }

References hungry.

Member Data Documentation

◆ hungry

bool SinglePressEventEater::hungry = true
private

Definition at line 35 of file KisPopupWidgetAction.cpp.


The documentation for this struct was generated from the following file: