matrixion/src/ui/OverlayWidget.h

22 lines
437 B
C
Raw Normal View History

#pragma once
2017-04-06 02:06:42 +03:00
#include <QEvent>
#include <QPainter>
#include <QStyleOption>
2017-04-06 02:06:42 +03:00
#include <QWidget>
class OverlayWidget : public QWidget
{
2017-09-10 12:59:21 +03:00
Q_OBJECT
2017-04-06 02:06:42 +03:00
public:
2017-09-10 12:59:21 +03:00
explicit OverlayWidget(QWidget *parent = nullptr);
2017-04-06 02:06:42 +03:00
protected:
2017-09-10 12:59:21 +03:00
bool event(QEvent *event) override;
bool eventFilter(QObject *obj, QEvent *event) override;
2017-04-06 02:06:42 +03:00
2017-09-10 12:59:21 +03:00
QRect overlayGeometry() const;
void paintEvent(QPaintEvent *event) override;
2017-04-06 02:06:42 +03:00
};