]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Load existing comments as plain text to allow editing of html comments.
authorSebastian Trueg <sebastian@trueg.de>
Mon, 31 Mar 2008 19:37:55 +0000 (19:37 +0000)
committerSebastian Trueg <sebastian@trueg.de>
Mon, 31 Mar 2008 19:37:55 +0000 (19:37 +0000)
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

index 3b98d44d7b8d659e3ac208529558ce8d1e30ccbf..29c4ce67513ed1061d0f13fa0f5dc84fcbc2d466 100644 (file)
@@ -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;