2 #include "ErrorHandler/MsgBox.h"
4 using namespace novadaq::errorhandler;
6 MsgBox::MsgBox(QString
const& title,
NodeInfo const& info, QDialog* parent)
7 : QDialog(parent), node(info)
11 connect(btnRefresh, SIGNAL(clicked()),
this, SLOT(refreshMsgs()));
14 labelNodeName->setText(title);
17 txtMessages->setHtml(node.msgs_to_string());
18 txtMessages->moveCursor(QTextCursor::End);
21 void MsgBox::refreshMsgs()
24 txtMessages->setHtml(node.msgs_to_string());
25 txtMessages->moveCursor(QTextCursor::End);