From 2120512d4cd9fbac13016f8d57690b6f2c34499c Mon Sep 17 00:00:00 2001 From: Sebastian Trueg Date: Mon, 31 Mar 2008 19:37:55 +0000 Subject: [PATCH] Load existing comments as plain text to allow editing of html comments. Maybe in the future it would be nice to have a rich text editor here which also handles semantic stuff like automatic annotations. BUG: 160160 svn path=/trunk/KDE/kdebase/apps/; revision=792294 --- src/commenteditwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commenteditwidget.cpp b/src/commenteditwidget.cpp index 3b98d44d7..29c4ce675 100644 --- a/src/commenteditwidget.cpp +++ b/src/commenteditwidget.cpp @@ -162,7 +162,7 @@ QString CommentEditWidget::comment() bool CommentEditWidget::exec( const QPoint& pos ) { d->success = false; - d->textEdit->setText( d->comment ); + d->textEdit->setPlainText( d->comment ); d->textEdit->setFocus(); d->textEdit->moveCursor( QTextCursor::End ); QEventLoop eventLoop; -- 2.47.3