24 lines
439 B
C++
24 lines
439 B
C++
#ifndef _GUI_WARNINGLABEL_H__
|
|
#define _GUI_WARNINGLABEL_H__
|
|
#include <QWidget>
|
|
#include <QString>
|
|
|
|
|
|
enum WarningType{
|
|
ERROR, WARNING
|
|
};
|
|
|
|
class WarningLabel: public QWidget {
|
|
Q_OBJECT
|
|
public:
|
|
explicit WarningLabel(QWidget *aParent, WarningType aType,const QString& aMessageTime, const QString& content);
|
|
~WarningLabel() =default;
|
|
protected:
|
|
void paintEvent(QPaintEvent * aEvent);
|
|
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
#endif // __WARNINGLABEL_H__
|