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 22 of file KisPopupWidgetAction.cpp.

Member Function Documentation

◆ eventFilter()

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

Definition at line 24 of file KisPopupWidgetAction.cpp.

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

References hungry.

Member Data Documentation

◆ hungry

bool SinglePressEventEater::hungry = true
private

Definition at line 34 of file KisPopupWidgetAction.cpp.


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