32 #include <QPushButton>
33 #include <QVBoxLayout>
35 LogView::LogView(QWidget *parent) :
36 QDockWidget(
"Logs", parent)
38 QWidget* widget=
new QWidget(
this);
42 logText =
new QTextEdit(
this);
43 logText->setReadOnly(
true);
44 widget->setLayout(
new QVBoxLayout(
this));
45 widget->layout()->addWidget(logText);
46 QPushButton* pbClear =
new QPushButton(
"Clear logs",
this);
47 widget->layout()->addWidget(pbClear);
48 connect(pbClear,SIGNAL(clicked()),logText,SLOT(clear()));
56 void LogView::addLog(QString log)