khtml scrollbars and bidi
Diego Iastrubni
elcuco at kdemail.net
Sat Jul 24 12:41:35 BST 2004
Ingo Klöcker wrote:
>On Saturday 24 July 2004 03:56, Diego Iastrubni wrote:
>
>
>>Hi all,
>>
>>I was thinking of moving khtml Vscroll bar according to the html
>>direction. This means that the location of the scrollbar will be
>>determinated by the direction of the body of the html. This way I
>>will see the scrollbar on the right on english sites, and on the left
>>on hebrew sites.
>>
>>khtml is derived from qscrollview, which does not have any method to
>>do this. Does anyone have an idea how can this feature implemented?
>>
>>
>
>You could use QApplication::setReverseLayout ( bool b ):
>"If b is TRUE, all dialogs and widgets will be laid out in a mirrored
>fashion, as required by right to left languages such as Arabic and
>Hebrew. If b is FALSE, dialogs and widgets are laid out left to right.
>
>
This is what I am trying to avoid. I want this to be specific per HTML,
not per locale.
>Changing this flag in runtime does not cause a relayout of already
>instantiated widgets."
>
>
There is a slot which is called when the layout direction is changed.
It's a shame you cannot change the direction of the app on the fly (or
can you?)
>You might want to ask TT to add a QWidget::setReverseLayout( bool b ) to
>Qt 4.
>
>
That's the spirit! ok. I will do this soon.
>FWIW, I don't think that this "feature" makes any sense. But then again,
>I'm ltr-only, so what do I know.
>
>
as you said.. but let me explain:
On english, the screoll bar is on the right, corrent?
On hebrew/arabic it is on the left ok?
It should be done acording to the content of the HTML and not your
locale, trust me. IE implemnets it, and trust me this is the way to go.
--
diego, kde-il translation team
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
Free MS-Office replacement for most platforms
http://www.openoffice.org/
More information about the kde-core-devel
mailing list