Support Right-to-Left layouts

Qt does this all automatically, we just need to hook it up
This commit is contained in:
Scott Mansell 2022-07-18 19:11:32 +12:00
parent f0eb7b42e2
commit 786067f3b1
1 changed files with 1 additions and 0 deletions

View File

@ -294,6 +294,7 @@ static bool TryInstallTranslator(const QString& exact_language_code)
QLocale::setDefault(QLocale(exact_language_code));
UICommon::SetLocale(exact_language_code.toStdString());
QApplication::setLayoutDirection(QLocale(exact_language_code).textDirection());
return true;
}