mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 11:28:49 +03:00
25 lines
510 B
C++
25 lines
510 B
C++
// SPDX-FileCopyrightText: 2021 Nheko Contributors
|
|
//
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#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;
|
|
};
|