处理维哈柯布局问题

This commit is contained in:
openKylin2.0 2024-08-19 07:36:43 +08:00
parent 1d8fd4ad96
commit ebb9a17b2c
3 changed files with 13 additions and 0 deletions

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"cmake.sourceDirectory": "/home/openKylin2.0/test/gitee/test/qtbase-opensource-src/tests/auto/cmake"
}

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"