Abdelrazak Younes <[EMAIL PROTECTED]> writes:
> Do you want me to convert that to a class?

No, I want you to initialize the variables when you create an
instance of the thing:

> struct ScrollbarParameters
> {
+       ScrollbarParameters()
+         : height(0),
+         : position(0),
+         : lineScrollHeight(0)
+       {}
+
>       /// The total document height in pixels
>       int height;
>       /// The current position in the document, in pixels
>       int position;
>       /// the line-scroll amount, in pixels
>       int lineScrollHeight;
> };

> Well, scrollbarParameters_ is private but I could make it protected and 
> use that directly in BufferView. I see just now that BufferView is 
> declared friend in BufferView_pimpl. You would prefer that?

I think that Bufferview should access the thing through an accessor. I was
wondering if Pimpl needed to do so also. Don't really care ;-)

> >> +  verticalScrollBar()->setTracking(false);
> This has nothing to do with CT . This is part of Qt4 API for sliders.

D'oh!

Angus

Reply via email to