Files
simple64/simple64-gui/logviewer.cpp
T
Logan McNaughton 8e8583c042 move files
2022-08-31 11:24:48 -06:00

24 lines
459 B
C++

#include "logviewer.h"
LogViewer::LogViewer(QWidget *parent)
: QDialog(parent)
{
this->resize(640,480);
QVBoxLayout *mainLayout = new QVBoxLayout(this);
textArea = new QPlainTextEdit(this);
textArea->setReadOnly(1);
mainLayout->addWidget(textArea);
setLayout(mainLayout);
}
void LogViewer::addLog(QString text)
{
if (textArea)
textArea->appendPlainText(text);
}
void LogViewer::clearLog()
{
textArea->clear();
}