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
remotes/origin/KDE/4.0
Pino Toscano 18 years ago
parent f71c12aaf7
commit d89007c2aa
  1. 4
      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()));

Loading…
Cancel
Save