19 #include <QPlainTextEdit> 26 _stream(stream), _te(te)
58 std::string::size_type pos = 0;
61 if (pos != std::string::npos) {
62 _te->appendPlainText(QString::fromLatin1(
_buffer.c_str(), pos));
virtual std::streamsize xsputn(const char *p, std::streamsize n)
virtual std::char_traits< char >::int_type overflow(int_type v)
std::streambuf * _old_buf
StreamRedirect(std::ostream &stream, QPlainTextEdit *te)
std::char_traits< char >::int_type int_type