messagedialog.hpp 394 B

12345678910111213141516171819202122232425
  1. #ifndef MESSAGEDIALOG_HPP
  2. #define MESSAGEDIALOG_HPP
  3. #include <QDialog>
  4. #include <QPushButton>
  5. namespace Ui {
  6. class MessageDialog;
  7. }
  8. class MessageDialog : public QDialog
  9. {
  10. Q_OBJECT
  11. public:
  12. explicit MessageDialog(QWidget *parent = nullptr);
  13. void append(QString message, bool formatted=false);
  14. ~MessageDialog();
  15. private:
  16. Ui::MessageDialog *ui;
  17. };
  18. #endif // MESSAGEDIALOG_HPP