Wavelength
Privacy-focused, cross-platform, and open-source communication application
Loading...
Searching...
No Matches
resize_event_filter.h
Go to the documentation of this file.
1#ifndef RESIZE_EVENT_FILTER_H
2#define RESIZE_EVENT_FILTER_H
3
4#include <QObject>
5
6class BlobAnimation;
7class QLabel;
8
16class ResizeEventFilter final : public QObject {
17public:
23 ResizeEventFilter(QLabel *label, BlobAnimation *animation);
24
25protected:
34 bool eventFilter(QObject *watched, QEvent *event) override;
35
36private:
38 QLabel *label_;
41};
42
43#endif //RESIZE_EVENT_FILTER_H
Main widget responsible for rendering and animating the dynamic blob.
Definition blob_animation.h:30
ResizeEventFilter(QLabel *label, BlobAnimation *animation)
Constructs a ResizeEventFilter.
Definition resize_event_filter.cpp:8
BlobAnimation * animation_
Pointer to the BlobAnimation widget being monitored for resize events.
Definition resize_event_filter.h:40
QLabel * label_
Pointer to the QLabel that needs to be centered.
Definition resize_event_filter.h:38
bool eventFilter(QObject *watched, QEvent *event) override
Filters events sent to the watched object (the BlobAnimation widget). Checks if the event is a Resize...
Definition resize_event_filter.cpp:12