summaryrefslogtreecommitdiff
path: root/src/ui/msgdialog.cpp
blob: 2b4796663ea54e627df52bdb21b0637226dc3f4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// SPDX-License-Identifier: GPL-2.0-or-later

#include <stdio.h>

#include "msgdialog.h"

msgDialog::msgDialog(QWidget *parent, Qt::WindowFlags fl)
    : QDialog(parent, fl) {
  ui_.setupUi(this);
  // signals and slots connections
  //QVERIFY(connect( okButton, SIGNAL( clicked() ), this, SLOT( accept() ) ));
}

/*  
 *  Destroys the object and frees any allocated resources
 */
msgDialog::~msgDialog() {
  // no need to delete child widgets, Qt does it all for us
}

void msgDialog::setMessageText(const QString& message) {
  ui_.msgBrowser->setPlainText(message);
}

#include "msgdialog.moc"