Abdelrazak Younes wrote:
Ozgur Ugras BARAN wrote:
On 11/17/06, Abdelrazak Younes <[EMAIL PROTECTED]> wrote:
Ozgur Ugras BARAN wrote:
> attached patch implement slider in TOC dialog.
>
> I have implemented a getDepth function to get the model indices. In my
> opinion, somebody should derive a new qvariant class for tocModelItem
> which saves the string data and depth information. that will save the
> depth calculation.
>
> I'll be glad somebody see and commit the patch, please..

Dear Ugras,

I've applied the patch but there's some work remaining. Basically, the
main problem is that the slider state does not interact correctly with
the Toc navigation. Try to use the vertical scrollbar or a wheel mouse
and you'll see what I mean.

Abdel.


If I understood the problem correctly, this patch solves the problem.

It seems to behave better yes, thanks. Another problem though: Sections with depth greater than two* do not show anymore in the Toc tree. I don't know if this due to your patch or if it was there before.

It seems to be due to your patch...

The more I think about it, the more I think this slider is not useful for any purpose in the Toc dialog. In the former qt3 dialog, the slider was useful because the nodes won't collapse/open automatically when you navigate within the document. This is not the case with the qt4 dialog: the nodes are automatically collapsed/open with the document.

So I think we should get rid of the slider altogether. Would you like to add something Juergen S.? There's maybe some other benefit that I don't see clearly.

Abdel.

Reply via email to