On Mon, Oct 1, 2012 at 3:51 AM, Edward K. Ream <[email protected]> wrote:
> On Mon, Oct 1, 2012 at 2:24 AM, Edward K. Ream <[email protected]> wrote:
> The original idea won't work: n is simply an index into the line being
> colored, not a global index.
This is turning into quite an educational project for me.
w.repaint() does *not* involve QSH, so the QTextBrowser must cache the
style info. The question is, where?
To answer this, I looked at the QSH sources. The answer, apparently,
is in a QTextLayout. Indeed, in QSH.applyFormatChanges() there is the
line::
QTextLayout *layout = currentBlock.layout();
and right near the end::
layout->setAdditionalFormats(ranges);
So it should be possible to write a short script to get a concise
summary of the formatting. I might even dare hope that QTextLayout
may simplify the process. We shall see...
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.