From d89007c2aa274ed535867a14797f380a2798ef33 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sun, 23 Mar 2008 23:18:37 +0000 Subject: [PATCH] Backport a couple of fixes to the annotation window: - explicitely deny rich text - set the plain text w/o an implicit html conversion CCBUG: 159641 svn path=/branches/KDE/4.0/kdegraphics/okular/; revision=789332 --- ui/annotwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/annotwindow.cpp b/ui/annotwindow.cpp index 16716567c..e2a771ea6 100644 --- a/ui/annotwindow.cpp +++ b/ui/annotwindow.cpp @@ -163,7 +163,9 @@ AnnotWindow::AnnotWindow( QWidget * parent, Okular::Annotation * annot) setAutoFillBackground( true ); setFrameStyle( Panel | Raised ); - textEdit = new KTextEdit( GuiUtils::contents( m_annot ), this ); + textEdit = new KTextEdit( this ); + textEdit->setAcceptRichText( false ); + textEdit->setPlainText( GuiUtils::contents( m_annot ) ); connect(textEdit,SIGNAL(textChanged()), this,SLOT(slotsaveWindowText()));