diff options
Diffstat (limited to 'src/ui/OverlayWidget.h')
-rw-r--r-- | src/ui/OverlayWidget.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/ui/OverlayWidget.h b/src/ui/OverlayWidget.h new file mode 100644 index 00000000..6662479d --- /dev/null +++ b/src/ui/OverlayWidget.h @@ -0,0 +1,21 @@ +#pragma once + +#include <QEvent> +#include <QPainter> +#include <QStyleOption> +#include <QWidget> + +class OverlayWidget : public QWidget +{ + Q_OBJECT + +public: + explicit OverlayWidget(QWidget *parent = nullptr); + +protected: + bool event(QEvent *event) override; + bool eventFilter(QObject *obj, QEvent *event) override; + + QRect overlayGeometry() const; + void paintEvent(QPaintEvent *event) override; +}; |