|
| bool | eventFilter (QObject *watched, QEvent *event) override |
| |
◆ PlatformWindowDetectionEventFilter()
| PlatformWindowDetectionEventFilter::PlatformWindowDetectionEventFilter |
( |
QObject * | watched, |
|
|
QObject * | parent = nullptr ) |
|
inline |
◆ eventFilter()
| bool PlatformWindowDetectionEventFilter::eventFilter |
( |
QObject * | watched, |
|
|
QEvent * | event ) |
|
inlineoverrideprivate |
Definition at line 93 of file KisWaylandSurfaceColorManager.cpp.
93 {
95
96 if (event->type() == QEvent::PlatformSurface) {
97 QPlatformSurfaceEvent *pevent = static_cast<QPlatformSurfaceEvent*>(event);
98 if (pevent->surfaceEventType() == QPlatformSurfaceEvent::SurfaceCreated) {
100 } else if (pevent->surfaceEventType() == QPlatformSurfaceEvent::SurfaceAboutToBeDestroyed) {
102 }
103 }
104
105 return false;
106 }
References m_watched, sigPlatformWindowCreated(), and sigPlatformWindowDestroyed().
◆ sigPlatformWindowCreated
| void PlatformWindowDetectionEventFilter::sigPlatformWindowCreated |
( |
| ) |
|
|
signal |
◆ sigPlatformWindowDestroyed
| void PlatformWindowDetectionEventFilter::sigPlatformWindowDestroyed |
( |
| ) |
|
|
signal |
◆ m_watched
| QObject* PlatformWindowDetectionEventFilter::m_watched = nullptr |
|
private |
The documentation for this class was generated from the following file: