summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/hexwindow.cpp
Unidiff
Diffstat (limited to 'noncore/net/wellenreiter/gui/hexwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/hexwindow.cpp13
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
@@ -18,22 +18,21 @@
18 18
19MHexWindow::MHexWindow( QWidget * parent, const char * name, WFlags f ) 19MHexWindow::MHexWindow( QWidget * parent, const char * name, WFlags f )
20 :QVBox( parent, name, f ) 20 :QVBox( parent, name, f )
21{ 21{
22 ledit = new QMultiLineEdit( this ); 22 ledit = new QMultiLineEdit( this );
23 ledit->setFont( QFont( "fixed", 10 ) ); 23 ledit->setFont( QFont( "fixed", 10 ) );
24 24 ledit->setReadOnly( true );
25 // FIXME: Set properties( font, read-only, etc...)
26
27}; 25};
28 26
29void MHexWindow::log( QString text ) 27void MHexWindow::log( const QString& text )
30{ 28{
31 29 int col;
32 ledit->append( text ); 30 int row;
33 31 ledit->getCursorPosition( &col, &row );
32 ledit->insertAt( text, col, row );
34}; 33};
35 34
36const QString MHexWindow::getLog() const 35const QString MHexWindow::getLog() const
37{ 36{
38 return ledit->text(); 37 return ledit->text();
39} 38}