Add WarningLabel and WarningMessageWidget to App, and add some reference event to EventCenter

This commit is contained in:
chenhuijun
2024-04-19 14:08:44 +08:00
parent 14599ba05f
commit 7dc0404481
6 changed files with 458 additions and 8 deletions

View File

@@ -0,0 +1,24 @@
#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__