blob: f207843f94a1e72c1929803fcb297abe77068bb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef WARNING_PANEL_H
#define WARNING_PANEL_H
#include <QtWidgets>
class WarningPanel: public QFrame
{
Q_OBJECT
public:
WarningPanel(QWidget* parent = 0);
void setText(const QString& text);
private:
QLabel* createWarningIconLabel() const;
QToolButton* createWarningCloseButton() const;
QHBoxLayout* createWarningLayout();
void initPanel();
private:
QLabel* warningLabel;
};
#endif
|