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