[Fedora-trans-ar] Re: Arabic issue #3: Qt::AlignAuto doesn't align according the language!

Munzir Taha munzirtaha at newhorizons.com.sa
Wed Feb 2 22:35:10 UTC 2005


On Yaum al-Arbi'a 22 Thu al-Hijjah 1425 5:10 pm, Lars Knoll wrote:

> >
> > If you check the documentation for QTextEdit::setAlignment() then it
> > states that only the following alignments are actually valid:
> >
> > "Valid alignments are Qt::AlignLeft, Qt::AlignRight, Qt::AlignJustify
> > and Qt::AlignCenter (which centers horizontally)."
> >
> > AlignAuto is not one of them, thus this is not expected to work.


Check it here: qt.html#AlignmentFlag.enum


> As a short comment to this:
>
> We removed the AlignAuto from Qt and hopefully replaced it with a more
> consistent and intuitive approach.
>
> AlignLeft is actually to not confuse the english speaking people. In a BiDi
> context it means AlignLeading; left if the string is LTR, right if the
> string is RT). AlignRight is the opposite (AlignTrailing).
>
> In addition we have AlignLeft|AlignAbsolute if you really want to force it
> to be always left.
>
> By default, text inherits the widgets direction, so when you start an app
> with -reverse everything is right aligned. You can switch the direction of
> a string using the Shift+Ctrl combination (if you enabled it in qtconfig).
>
> Please try it with tonights snapshot. I think it comes much closer to the
> behaviour one would expect intuitively than the Qt 3 way.

Thanks Lars for the clarification, I will check it. Did you remove it from the 
docs?



-- 
Munzir Taha  PGP Key available
gpg --recv-keys --keyserver www.mandrakesecure.net F0671821

Telecommunications and Electronics Engineer
Mandrake Club Member
Maintainer of the Open Arabic Bugs Project at
http://wiki.arabeyes.org/OpenBugs
Maintainer of Fedora Arabic Translation Project
https://listman.redhat.com/mailman/listinfo/fedora-trans-ar
CIW Designer, ICDL, MOUS, Linux+, LPI 101
New Horizons CLC, Riyadh, SA




More information about the Fedora-trans-ar mailing list