!25 处理维哈柯布局问题

Merge pull request !25 from KevinDuan/openkylin/nile
This commit is contained in:
hanpinlong 2024-08-19 00:50:19 +00:00 committed by Gitee
commit 2e13f8eb8f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 10 additions and 0 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
qtbase-opensource-src (5.15.10+dfsg-3ok2.8) nile; urgency=medium
* 处理维哈柯布局问题.
-- Kevin Duan <duankaiwen@kylinos.cn> Mon, 29 Jul 2024 09:32:06 +0800
qtbase-opensource-src (5.15.10+dfsg-3ok2.7) nile; urgency=medium
* Fix build with libxkbcommon 1.6.0.

View File

@ -230,6 +230,10 @@ extern void qRegisterGuiGetInterpolator();
static bool qt_detectRTLLanguage()
{
if(qgetenv("LANGUAGE") == "ug_CN" || qgetenv("LANGUAGE") == "kk_KZ" || qgetenv("LANGUAGE") == "ky_KG" ){
return true;
}
return force_reverse ^
(QGuiApplication::tr("QT_LAYOUT_DIRECTION",
"Translate this string to the string 'LTR' in left-to-right"