Diffstat (limited to 'noncore/net/wellenreiter/gui/hexwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/hexwindow.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/noncore/net/wellenreiter/gui/hexwindow.cpp b/noncore/net/wellenreiter/gui/hexwindow.cpp index 8b17285..2f011ca 100644 --- a/noncore/net/wellenreiter/gui/hexwindow.cpp +++ b/noncore/net/wellenreiter/gui/hexwindow.cpp @@ -21,16 +21,15 @@ MHexWindow::MHexWindow( QWidget * parent, const char * name, WFlags f ) { ledit = new QMultiLineEdit( this ); ledit->setFont( QFont( "fixed", 10 ) ); - - // FIXME: Set properties( font, read-only, etc...) - + ledit->setReadOnly( true ); }; -void MHexWindow::log( QString text ) +void MHexWindow::log( const QString& text ) { - - ledit->append( text ); - + int col; + int row; + ledit->getCursorPosition( &col, &row ); + ledit->insertAt( text, col, row ); }; const QString MHexWindow::getLog() const |