[prev in list] [next in list] [prev in thread] [next in thread]
List: ktexteditor-devel
Subject: Re: interface for arbitrary highlight?
From: Anders Lund <anders () alweb ! dk>
Date: 2007-02-08 7:10:00
Message-ID: 200702080810.01995.anders () alweb ! dk
[Download RAW message or body]
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<KTextEditor::SmartInterface*>( 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic