automatic RTL based on locale
authorSafa
Tue, 11 Nov 2014 21:46:17 +0100
changeset 10488 c5735d0fcc50
parent 10487 b69b91779f10
child 10489 bde3e43d7b27
automatic RTL based on locale
QTfrontend/main.cpp
--- a/QTfrontend/main.cpp	Tue Nov 11 21:45:20 2014 +0100
+++ b/QTfrontend/main.cpp	Tue Nov 11 21:46:17 2014 +0100
@@ -333,6 +333,7 @@
         if (!Translator.load(QString("physfs://Locale/hedgewars_%1").arg(cc)))
             qWarning("Failed to install translation (%s)", qPrintable(cc));
         app.installTranslator(&Translator);
+        app.setLayoutDirection(QLocale(cc).textDirection());
     }
 
 #ifdef _WIN32