yacreader/YACReader/notifications_label_widget.h
Daisuke Cato a08b5f8af0 reimplementaion of fix for QColorDialog on macOS Sierra bug.
doesn't use destructor because destructor causes another crash.
2016-10-22 19:14:07 +09:00

31 lines
551 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 *);
public:
NotificationsLabelWidget(QWidget * parent);
public slots:
void flash();
void setText(const QString & text);
void updatePosition();
};
#endif