generatorqtexteditoutput.cpp 280 B

123456789101112
  1. #include "generatorqtexteditoutput.h"
  2. GeneratorQTextEditOutput::GeneratorQTextEditOutput(QPlainTextEdit *qTextEdit) : m_qTextEdit(qTextEdit)
  3. {
  4. }
  5. void GeneratorQTextEditOutput::printOutput(const QString &msg)
  6. {
  7. if (m_qTextEdit)
  8. m_qTextEdit->appendPlainText(msg);
  9. }