mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 18:00:46 -04:00
31 lines
550 B
C++
31 lines
550 B
C++
#ifndef NOTIFICATIONS_LABEL_WIDGET_H
|
|
#define NOTIFICATIONS_LABEL_WIDGET_H
|
|
|
|
#include <QWidget>
|
|
|
|
class QLabel;
|
|
class QPropertyAnimation;
|
|
class QGraphicsOpacityEffect;
|
|
|
|
class NotificationsLabelWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
QLabel *textLabel;
|
|
QPropertyAnimation *anim;
|
|
QGraphicsOpacityEffect *effect;
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *) override;
|
|
|
|
public:
|
|
NotificationsLabelWidget(QWidget *parent);
|
|
|
|
public slots:
|
|
void flash();
|
|
void setText(const QString &text);
|
|
void updatePosition();
|
|
};
|
|
|
|
#endif
|