On Thu, Aug 16, 2007 at 10:53:54AM +0200, Alfredo Braunstein wrote: > Enrico Forestieri wrote: > > > I don't know what exactly does not work. I am testing it with Qt 4.1.5 > > Neither do I unfortunately :-( It seems only some qt (sub)versions are > affected? Bo, could you give a specific (small) test case?
We can also rule out 4.1.4, as it differs from 4.1.5 by an epsilon. > > The only glitch that I can see, is that when the cursor is at a > > position corresponding to the boundary between two successive lines > > in View Source, then both the actual and the next line are highlighted. > > But moving the cursor to the left by a position, the previous line is > > unhighlighted and only the now actual one remains highlighted. > > > > So, seems that it is working ok with 4.1.5, mentioned glitch apart. > > Wrt. to the glitch, the attached should fix it, hopefully without > introducing other glitches. It turns out it is trickier than it may seem to > get all corner cases right (1 position -> multiple latex rows, multiple > positions -> 1 latex row, etc.). The patch works without visible drawbacks. > > Hmm. Sorry for the noise. Now I see that the line is indeed highlighted > > No problem. > > > with a very light gray color, so light that I must look carefully to > > notice it. I had expected the same very visible light blue that I am > > getting with Qt 4.1.5, and maybe this is what fooled me... > > I have qt 4.2.3 here and I get blue. Maybe this depends on qt color themes > (i.e. locally configurable)? I don't exactly know. For example, on linux I get black. Then the font used in the View Source window is quite readable with 4.1.5, but is very small with 4.2.2 and 4.3.1. All these versions should share the same preferences set in ~/.config/Trolltech.conf, so there must be different defaults in different versions. I don't how to configure that, though, as I don't seem to see anything relevant when using qtconfig. -- Enrico