Menu

[efa3d9]: / src / scriptoutput.cpp  Maximize  Restore  History

Download this file

24 lines (17 with data), 547 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "scriptoutput.h"
ScriptOutput::ScriptOutput(QWidget *parent) : QWidget(parent)
{
editor = new QTextEdit(this);
layout = new QVBoxLayout;
layout->addWidget(editor);
setLayout(layout);
}
ScriptOutput::~ScriptOutput()
{
delete layout;
delete editor;
}
void ScriptOutput::clear() { editor->clear(); }
void ScriptOutput::setText(const QString &text) { editor->setText(text); }
QString ScriptOutput::text() { return editor->toPlainText(); }
void ScriptOutput::append(const QString &text) { editor->append(text); }
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.