mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
29 lines
583 B
C++
29 lines
583 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 * imgLabel;
|
|
QLabel * textLabel;
|
|
QPropertyAnimation * anim;
|
|
QPropertyAnimation * anim2;
|
|
QGraphicsOpacityEffect * effect;
|
|
QGraphicsOpacityEffect * effect2;
|
|
public:
|
|
NotificationsLabelWidget(QWidget * parent);
|
|
|
|
public slots:
|
|
void flash();
|
|
void setText(const QString & text);
|
|
void updatePosition();
|
|
};
|
|
|
|
#endif |