Commit ff403e89 authored by Fahad Al-Saidi's avatar Fahad Al-Saidi Committed by Jean-Baptiste Kempf

Qt: fix RTL layout

Fix #9170

Qt doesn't set application layout direction by default, so we make it
use locale text direction, e.g. RTL for Arabic.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a1b2ad27
...@@ -479,6 +479,10 @@ static void *Thread( void *obj ) ...@@ -479,6 +479,10 @@ static void *Thread( void *obj )
/* Start the QApplication here */ /* Start the QApplication here */
QVLCApp app( argc, argv ); QVLCApp app( argc, argv );
/* Set application direction to locale direction,
* necessary for RTL locales */
app.setLayoutDirection(QLocale().textDirection());
p_intf->p_sys->p_app = &app; p_intf->p_sys->p_app = &app;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment