summary refs log tree commit diff
path: root/src/ui/OverlayWidget.h
blob: ed3ef52d8a7aff8dc39a9d9d758fca119f8dc9bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include <QEvent>
#include <QWidget>

class QPainter;

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;
};