author | zecke <zecke> | 2004-08-24 13:09:19 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-08-24 13:09:19 (UTC) |
commit | 102bb2b65c71da12c4f9f1ce7a5d1b37b6eb50ee (patch) (unidiff) | |
tree | 7fc5bdf7ec22b8383c5cafc46f733a1db7cdd326 | |
parent | b06390cb17114692a9fd5233d77620b385252480 (diff) | |
download | opie-102bb2b65c71da12c4f9f1ce7a5d1b37b6eb50ee.zip opie-102bb2b65c71da12c4f9f1ce7a5d1b37b6eb50ee.tar.gz opie-102bb2b65c71da12c4f9f1ce7a5d1b37b6eb50ee.tar.bz2 |
Minor adjustment to the patch:
-insertLine already adds a \n
-add a slotTabChanged slot in wellenreiterbase
-rw-r--r-- | noncore/net/wellenreiter/gui/logwindow.cpp | 2 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiterbase.h | 2 |
2 files changed, 3 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 | |||
@@ -31,25 +31,25 @@ MLogWindow::MLogWindow( QWidget * parent, const char * name, WFlags f ) | |||
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 |
diff --git a/noncore/net/wellenreiter/gui/wellenreiterbase.h b/noncore/net/wellenreiter/gui/wellenreiterbase.h index e40b699..c39be48 100644 --- a/noncore/net/wellenreiter/gui/wellenreiterbase.h +++ b/noncore/net/wellenreiter/gui/wellenreiterbase.h | |||
@@ -62,16 +62,18 @@ public: | |||
62 | 62 | ||
63 | protected: | 63 | protected: |
64 | QVBoxLayout* WellenreiterBaseLayout; | 64 | QVBoxLayout* WellenreiterBaseLayout; |
65 | QVBoxLayout* apLayout; | 65 | QVBoxLayout* apLayout; |
66 | QGridLayout* aboutLayout; | 66 | QGridLayout* aboutLayout; |
67 | bool event( QEvent* ); | 67 | bool event( QEvent* ); |
68 | 68 | ||
69 | QPixmap* ani1; | 69 | QPixmap* ani1; |
70 | QPixmap* ani2; | 70 | QPixmap* ani2; |
71 | QPixmap* ani3; | 71 | QPixmap* ani3; |
72 | QPixmap* ani4; | 72 | QPixmap* ani4; |
73 | 73 | ||
74 | private slots: | ||
75 | virtual void slotTabChanged( QWidget* ) = 0; | ||
74 | 76 | ||
75 | }; | 77 | }; |
76 | 78 | ||
77 | #endif // WELLENREITERBASE_H | 79 | #endif // WELLENREITERBASE_H |