Diffstat (limited to 'pwmanager/pwmanager/commentbox.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | pwmanager/pwmanager/commentbox.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pwmanager/pwmanager/commentbox.cpp b/pwmanager/pwmanager/commentbox.cpp index 51f88b2..5416856 100644 --- a/pwmanager/pwmanager/commentbox.cpp +++ b/pwmanager/pwmanager/commentbox.cpp | |||
@@ -229,10 +229,10 @@ QSize CommentBox::size() | |||
229 | #else | 229 | #else |
230 | 230 | ||
231 | CommentBox::CommentBox(QWidget *_parentWidget) | 231 | CommentBox::CommentBox(QWidget *_parentWidget) |
232 | : QMultiLineEdit(_parentWidget) | 232 | : QTextBrowser(_parentWidget) |
233 | 233 | ||
234 | { | 234 | { |
235 | this->setReadOnly(true); | 235 | //this->setReadOnly(true); |
236 | setFocusPolicy( QWidget::ClickFocus ); | 236 | setFocusPolicy( QWidget::ClickFocus ); |
237 | } | 237 | } |
238 | 238 | ||
@@ -248,9 +248,9 @@ void CommentBox::clear() | |||
248 | 248 | ||
249 | void CommentBox::setText(const QString &text) | 249 | void CommentBox::setText(const QString &text) |
250 | { | 250 | { |
251 | QMultiLineEdit::setText( text); | 251 | QTextBrowser::setText( text); |
252 | if (!this->isVisible()) | 252 | if (!isVisible()) |
253 | this->show(); | 253 | show(); |
254 | } | 254 | } |
255 | 255 | ||
256 | bool CommentBox::getText(QString *text) | 256 | bool CommentBox::getText(QString *text) |