summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/commentbox.cpp
Side-by-side diff
Diffstat (limited to 'pwmanager/pwmanager/commentbox.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/commentbox.cpp12
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
@@ -23,15 +23,15 @@
#include <klocale.h>
#ifndef PWM_EMBEDDED
#include <khtml_part.h>
#include <khtmlview.h>
-#include <qtextedit.h>
+#include <q3textedit.h>
#else
-#include <qmultilineedit.h>
+#include <q3multilineedit.h>
#endif
#ifndef PWM_EMBEDDED
CommentBox::CommentBox(QWidget *_parentWidget)
@@ -134,13 +134,13 @@ void CommentBox::switchTo(commentBoxMode newMode)
break;
}
// setup new mode
switch (newMode) {
case mode_text:
- textDta = new QTextEdit(parentWidget);
+ textDta = new Q3TextEdit(parentWidget);
textDta->setTextFormat(Qt::PlainText);
textDta->setReadOnly(true);
textDta->show();
break;
case mode_html:
htmlDta = new KHTMLPart(parentWidget, 0,
@@ -226,17 +226,17 @@ QSize CommentBox::size()
////////////////////////////////////////////////////////////////////////
#else
CommentBox::CommentBox(QWidget *_parentWidget)
- : QTextBrowser(_parentWidget)
+ : Q3TextBrowser(_parentWidget)
{
//this->setReadOnly(true);
- setFocusPolicy( QWidget::ClickFocus );
+ setFocusPolicy( Qt::ClickFocus );
}
CommentBox::~CommentBox()
{
}
@@ -245,13 +245,13 @@ void CommentBox::clear()
this->hide();
}
void CommentBox::setText(const QString &text)
{
- QTextBrowser::setText( text);
+ Q3TextBrowser::setText( text);
if (!isVisible())
show();
}
bool CommentBox::getText(QString *text)
{