Files
GUI/src/dialogs/AlertDialog.h
2024-07-19 16:10:38 +08:00

24 lines
603 B
C++

#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());
~AlertDialog() override = default;
void setAlertMessage(const QString& msg);
void setAlertMessage(const QString& aFormat,const QString& aValue);
void setTitle(const QString& msg);
protected:
bool updateReferenceData() override{return true;}
private:
QLabel* mLblMsg;
QLabel* mLblTitle;
};
#endif //GUI_ALERTDIALOG_H