mirror of https://github.com/Nheko-Reborn/nheko
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
437 B
21 lines
437 B
#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;
|
|
};
|
|
|