| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #ifndef LABELWITHSTATUS_H |
| 4 | #define LABELWITHSTATUS_H |
| 5 | |
| 6 | #include "gui/reusable/widgetwithstatus.h" |
| 7 | |
| 8 | #include <QLabel> |
| 9 | |
| 10 | class RSSGUARD_DLLSPEC LabelWithStatus : public WidgetWithStatus { |
| 11 | Q_OBJECT |
| 12 | |
| 13 | public: |
| 14 | explicit LabelWithStatus(QWidget* parent = nullptr); |
| 15 | |
| 16 | void setStatus(StatusType status, const QString& label_text, const QString& status_text); |
| 17 | |
| 18 | // Access to label. |
| 19 | QLabel* label() const; |
| 20 | }; |
| 21 | |
| 22 | inline QLabel* LabelWithStatus::label() const { |
| 23 | return static_cast<QLabel*>(m_wdgInput); |
| 24 | } |
| 25 | |
| 26 | #endif // LABELWITHSTATUS_H |