18 #ifndef STATUSLABELWIDGET_H
19 #define STATUSLABELWIDGET_H
25 class QPropertyAnimation;
28 class StatusLabelWidget :
public QWidget
33 StatusLabelWidget(QWidget *parent =
nullptr);
34 virtual ~StatusLabelWidget();
35 void setWidth(
int width);
36 void showText(
const QString &text,
37 int timeoutSeconds = -1,
38 QAction *action =
nullptr,
39 QPalette::ColorRole role = QPalette::ToolTipBase);
45 void onFadeOutFinished();
46 QHBoxLayout *m_layout;
48 QPropertyAnimation *m_fadeIn;
49 QPropertyAnimation *m_fadeOut;