khtml scrollbars and bidi
Ingo Klöcker
kloecker at kde.org
Sat Jul 24 11:30:01 BST 2004
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.
Changing this flag in runtime does not cause a relayout of already
instantiated widgets."
You might want to ask TT to add a QWidget::setReverseLayout( bool b ) to
Qt 4.
FWIW, I don't think that this "feature" makes any sense. But then again,
I'm ltr-only, so what do I know.
Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040724/9a9e8406/attachment.sig>
More information about the kde-core-devel
mailing list