Vespucci  1.0.0
reportmessagedialog.cpp
Go to the documentation of this file.
2 #include "ui_reportmessagedialog.h"
3 
4 ReportMessageDialog::ReportMessageDialog(QWidget *parent, const QString &title) :
5  QDialog(parent),
6  ui(new Ui::ReportMessageDialog)
7 {
8  ui->setupUi(this);
9  setWindowTitle(title);
10 }
11 
12 void ReportMessageDialog::setLabel(const QString &new_label)
13 {
14  ui->label->setText(new_label);
15 }
16 
17 void ReportMessageDialog::appendPlainText(const QString &text)
18 {
19  ui->plainTextEdit->appendPlainText(text);
20 }
21 
22 
23 
25 {
26  delete ui;
27 }
28 
29 void ReportMessageDialog::on_buttonBox_accepted()
30 {
31  close();
32 }
Definition: ahcadialog.h:26
void appendPlainText(const QString &text)
void setLabel(const QString &new_label)
ReportMessageDialog(QWidget *parent, const QString &title)