diff --git a/debian/changelog b/debian/changelog index 935d1aa3..585efd19 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +qtbase-opensource-src (5.15.10+dfsg-3ok2.8) nile; urgency=medium + + * 处理维哈柯布局问题. + + -- Kevin Duan 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. diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 3a20188e..10915d3a 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -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"