[Kst] PATCH: inconsistent font sizes
George Staikos
staikos at kde.org
Sat Feb 4 03:26:46 CET 2006
On Friday 03 February 2006 21:04, George Staikos wrote:
> On Friday 03 February 2006 16:38, Barth Netterfield wrote:
> > 2dplot uses the plot geometry to calculate plot sizes, but viewlabels
> > were using the contentsRext, leading to inconsistent font sizes.
> >
> > This fixes that by having both use the geometry. They both have to use
> > the same thing, and 2dplots can't use contents rect because plots don't
> > know their contents rect until they know the font size...
>
> Ouch, tough problem. This means that labels will drift around contents
> though... Is that what you want? I don't care either way, really, but this
> patch is fine if that is what you want.
One more note, the drift issue (the stale child location) is directly
related to this. Kst2DPlot needs its draw/paint/update split up properly.
Right now it's all tangled together. Once it's split, I think it will work.
That's the whole point of updateSelf() vs paintSelf().
--
George Staikos
KDE Developer http://www.kde.org/
Staikos Computing Services Inc. http://www.staikos.net/
More information about the Kst
mailing list