2021-12-08 17:49:51 +08:00
|
|
|
#ifndef GUI_ALERTDIALOG_H
|
|
|
|
|
#define GUI_ALERTDIALOG_H
|
|
|
|
|
class QLabel;
|
|
|
|
|
#include "GUIFormBaseDialog.h"
|
|
|
|
|
class AlertDialog :public GUIFormBaseDialog{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
explicit AlertDialog(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
|
2022-06-13 11:21:44 +08:00
|
|
|
~AlertDialog() override = default;
|
2021-12-08 17:49:51 +08:00
|
|
|
void setAlertMessage(const QString& msg);
|
2022-03-08 10:04:48 +08:00
|
|
|
void setTitle(const QString& msg);
|
2021-12-08 17:49:51 +08:00
|
|
|
protected:
|
|
|
|
|
bool updateReferenceData() override{return true;}
|
|
|
|
|
|
|
|
|
|
private:
|
2022-06-13 11:21:44 +08:00
|
|
|
QLabel* mLblMsg;
|
|
|
|
|
QLabel* mLblTitle;
|
2021-12-08 17:49:51 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif //GUI_ALERTDIALOG_H
|