Rockbox

Tasklist

FS#10748 - rbutil: Explicitly override GUI layout direction setting for some widgets

Attached to Project: Rockbox
Opened by Tomer Shalev (tomers) - Saturday, 31 October 2009, 12:32 GMT
Last edited by Tomer Shalev (tomers) - Saturday, 31 October 2009, 17:16 GMT
Task Type Patches
Category Rbutil
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Release 3.4
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

This patch overrides layout direction settings of about and System Trace text browser widgets to Qt::LeftToRight.

This is done since both these browsers display latin text, and it doesn't look good when it is aligned to the right, as is the case if the utility language is set to Hebrew.
This task depends upon

Closed by  Tomer Shalev (tomers)
Saturday, 31 October 2009, 17:16 GMT
Reason for closing:  Accepted
Additional comments about closing:  Committed in r23441
Comment by Dominik Wenger (Domonoky) - Saturday, 31 October 2009, 14:45 GMT
I think this patch is fine. And should just go in :-)
Comment by Dominik Riebeling (bluebrother) - Saturday, 31 October 2009, 14:56 GMT
According to the Qt documentation Qt should be able to figure the layout direction by itself. This leads me to the assumption that forcing the layout direction (in main.cpp) itself is a bad idea though I haven't figured why it doesn't work automatically. IMO we should figure what's going wrong here instead of adding special cases (of course, if it's completely broken in Qt it's ok but not-really-nice to add workarounds. However, we should understand why it doesn't behave as advertised).

As a quick workaround this patch obviously doesn't do any harm so isn't problematic.
Comment by Dominik Wenger (Domonoky) - Saturday, 31 October 2009, 15:10 GMT
The Qt Documentation isnt clear about this. For QApplication it says the LayoutDirection defaults to the language direction, and for QWidgets it says it defaults to LTR, so what is correct ?

So i think we have todo this Layoutdirection thing your self. (You can also see many Qt apps on the web which does this).
Comment by Tomer Shalev (tomers) - Saturday, 31 October 2009, 16:49 GMT
Force several more widgets into left-to-right layout

Loading...