Testing

parent c3c3fe9e
......@@ -35,6 +35,8 @@ class RedstartCoreOutputPlainTextEdit : public QPlainTextEdit
{
if( c != EOF )
m_pParent->write( ( char ) c );
else
m_pParent->append();
return c;
};
......@@ -81,20 +83,26 @@ public:
return m_pOutStream;
};
inline void append()
{
appendPlainText( m_sLine );
};
inline void write( char c )
{
appendPlainText( QString( &c ) );
m_sLine += QString( 1, c );
};
inline void write( const std::string& str )
{
m_sLine += QString( str.c_str() );
};
public slots :
private:
COutStream* m_pOutStream;
QString m_sLine;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment