From ktexteditor-devel Thu Feb 08 07:10:00 2007 From: Anders Lund Date: Thu, 08 Feb 2007 07:10:00 +0000 To: ktexteditor-devel Subject: Re: interface for arbitrary highlight? Message-Id: <200702080810.01995.anders () alweb ! dk> X-MARC-Message: https://marc.info/?l=ktexteditor-devel&m=117091869718545 On Thursday 08 February 2007, Hamish Rodda wrote: > You need to call si->addHighlightToDocument() (or addHighlightToView) on > the top range, in this case, d->liRange I figured that, but I have no succes. I added the call in the constructor, and when that wouldn't work also with each each change: d->liRange->setRange( KTextEditor::Range( d->dcRange.end(), m.length() ) ); KTextEditor::SmartInterface *si = qobject_cast( m_view->document() ); si->addHighlightToView( m_view, d->liRange, false ); But still no succes. (And I should really be fine doing this once, right?) -anders -- www: http://www.alweb.dk jabber: anderslund@jabber.dk _______________________________________________ KTextEditor-Devel mailing list KTextEditor-Devel@kde.org https://mail.kde.org/mailman/listinfo/ktexteditor-devel