StatusLabel.h
Go to the documentation of this file.
1#pragma once
2
3#include <QLabel>
4#include <QPushButton>
5
7{
8 class StatusLabel : public QWidget
9 {
10 public:
11 /**
12 * @brief Constructor for StatusLabel
13 */
15
16 public slots:
17 /**
18 * @brief Display a message to indicate an update.
19 */
20 void handleMessage(std::string const& message, std::string const& error);
21
22 private slots:
23 /**
24 * @brief Reset the label to default state.
25 */
26 void resetLabel();
27
28 private:
29 void setupUi();
30
31 // contents
32 QLabel* label = nullptr;
33 QPushButton* resetButton = nullptr;
34 };
35} // namespace armarx::skills::gui
StatusLabel()
Constructor for StatusLabel.
void handleMessage(std::string const &message, std::string const &error)
Display a message to indicate an update.