Diffstat (limited to 'noncore/net/wellenreiter/gui/logwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/logwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/logwindow.cpp b/noncore/net/wellenreiter/gui/logwindow.cpp index a83f700..5f97f8e 100644 --- a/noncore/net/wellenreiter/gui/logwindow.cpp +++ b/noncore/net/wellenreiter/gui/logwindow.cpp | |||
@@ -19,40 +19,40 @@ | |||
19 | #include <opie2/odebug.h> | 19 | #include <opie2/odebug.h> |
20 | using namespace Opie::Core; | 20 | using namespace Opie::Core; |
21 | 21 | ||
22 | /* QT */ | 22 | /* QT */ |
23 | #include <qmultilineedit.h> | 23 | #include <qmultilineedit.h> |
24 | #include <qdatetime.h> | 24 | #include <qdatetime.h> |
25 | 25 | ||
26 | MLogWindow* MLogWindow::_instance; | 26 | MLogWindow* MLogWindow::_instance; |
27 | 27 | ||
28 | MLogWindow::MLogWindow( QWidget * parent, const char * name, WFlags f ) | 28 | MLogWindow::MLogWindow( QWidget * parent, const char * name, WFlags f ) |
29 | :QVBox( parent, name, f ) | 29 | :QVBox( parent, name, f ) |
30 | { | 30 | { |
31 | ledit = new QMultiLineEdit( this ); | 31 | ledit = new QMultiLineEdit( this ); |
32 | ledit->setReadOnly( true ); | 32 | ledit->setReadOnly( true ); |
33 | ledit->setUndoEnabled( false ); | 33 | ledit->setUndoEnabled( false ); |
34 | 34 | ||
35 | 35 | ||
36 | MLogWindow::_instance = this; | 36 | MLogWindow::_instance = this; |
37 | } | 37 | } |
38 | 38 | ||
39 | 39 | ||
40 | void MLogWindow::log( QString text ) | 40 | void MLogWindow::log( QString text ) |
41 | { | 41 | { |
42 | QTime time = QTime::currentTime(); | 42 | QTime time = QTime::currentTime(); |
43 | QString line = QString( "[%1] %2\n" ).arg(time.toString() ).arg( text ); | 43 | QString line = QString( "[%1] %2" ).arg(time.toString() ).arg( text ); |
44 | ledit->insertLine( line ); | 44 | ledit->insertLine( line ); |
45 | odebug << line << oendl; | 45 | odebug << line << oendl; |
46 | } | 46 | } |
47 | 47 | ||
48 | 48 | ||
49 | void MLogWindow::clear() | 49 | void MLogWindow::clear() |
50 | { | 50 | { |
51 | ledit->clear(); | 51 | ledit->clear(); |
52 | } | 52 | } |
53 | 53 | ||
54 | 54 | ||
55 | const QString MLogWindow::getLog() const | 55 | const QString MLogWindow::getLog() const |
56 | { | 56 | { |
57 | return ledit->text(); | 57 | return ledit->text(); |
58 | } | 58 | } |