Add setTitle to AlertDialog

This commit is contained in:
Krad
2022-03-08 10:04:48 +08:00
parent 3fe25ce14e
commit 13fcad6d08
2 changed files with 7 additions and 1 deletions

View File

@@ -12,11 +12,13 @@ public:
explicit AlertDialog(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
~AlertDialog();
void setAlertMessage(const QString& msg);
void setTitle(const QString& msg);
protected:
bool updateReferenceData() override{return true;}
private:
QLabel* lbl_msg;
QLabel* lbl_title;
};