Diffstat (limited to 'pwmanager/pwmanager/commentbox.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | pwmanager/pwmanager/commentbox.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pwmanager/pwmanager/commentbox.cpp b/pwmanager/pwmanager/commentbox.cpp index 5416856..a60440d 100644 --- a/pwmanager/pwmanager/commentbox.cpp +++ b/pwmanager/pwmanager/commentbox.cpp | |||
@@ -26,9 +26,9 @@ | |||
26 | #ifndef PWM_EMBEDDED | 26 | #ifndef PWM_EMBEDDED |
27 | #include <khtml_part.h> | 27 | #include <khtml_part.h> |
28 | #include <khtmlview.h> | 28 | #include <khtmlview.h> |
29 | #include <qtextedit.h> | 29 | #include <q3textedit.h> |
30 | #else | 30 | #else |
31 | #include <qmultilineedit.h> | 31 | #include <q3multilineedit.h> |
32 | #endif | 32 | #endif |
33 | 33 | ||
34 | 34 | ||
@@ -137,7 +137,7 @@ void CommentBox::switchTo(commentBoxMode newMode) | |||
137 | // setup new mode | 137 | // setup new mode |
138 | switch (newMode) { | 138 | switch (newMode) { |
139 | case mode_text: | 139 | case mode_text: |
140 | textDta = new QTextEdit(parentWidget); | 140 | textDta = new Q3TextEdit(parentWidget); |
141 | textDta->setTextFormat(Qt::PlainText); | 141 | textDta->setTextFormat(Qt::PlainText); |
142 | textDta->setReadOnly(true); | 142 | textDta->setReadOnly(true); |
143 | textDta->show(); | 143 | textDta->show(); |
@@ -229,11 +229,11 @@ QSize CommentBox::size() | |||
229 | #else | 229 | #else |
230 | 230 | ||
231 | CommentBox::CommentBox(QWidget *_parentWidget) | 231 | CommentBox::CommentBox(QWidget *_parentWidget) |
232 | : QTextBrowser(_parentWidget) | 232 | : Q3TextBrowser(_parentWidget) |
233 | 233 | ||
234 | { | 234 | { |
235 | //this->setReadOnly(true); | 235 | //this->setReadOnly(true); |
236 | setFocusPolicy( QWidget::ClickFocus ); | 236 | setFocusPolicy( Qt::ClickFocus ); |
237 | } | 237 | } |
238 | 238 | ||
239 | CommentBox::~CommentBox() | 239 | CommentBox::~CommentBox() |
@@ -248,7 +248,7 @@ void CommentBox::clear() | |||
248 | 248 | ||
249 | void CommentBox::setText(const QString &text) | 249 | void CommentBox::setText(const QString &text) |
250 | { | 250 | { |
251 | QTextBrowser::setText( text); | 251 | Q3TextBrowser::setText( text); |
252 | if (!isVisible()) | 252 | if (!isVisible()) |
253 | show(); | 253 | show(); |
254 | } | 254 | } |