维吾尔语言登录界面点右下角功能按钮,弹框显示在左侧

This commit is contained in:
liudunfa 2024-08-26 17:41:23 +08:00
parent 99a5c7b0ab
commit 31bb4c2a6a
1 changed files with 7 additions and 0 deletions

View File

@ -583,6 +583,13 @@ void LockWidget::initButtonWidget()
}
bottomWidgetLayout->addStretch();
bottomWidgetLayout->addWidget(buttonListWidget);
if (systemLang == "ug_CN" || systemLang == "ky_KG" || systemLang == "kk_KZ") {
if (m_pBottomWidget)
m_pBottomWidget->setLayoutDirection(Qt::RightToLeft);
} else {
if (m_pBottomWidget)
m_pBottomWidget->setLayoutDirection(Qt::LeftToRight);
}
connect(buttonListWidget, &MyListWidget::currentItemChanged, this, &LockWidget::onButtonItemChanged);
connect(buttonListWidget, &MyListWidget::itemClicked, this, &LockWidget::onButtonItemClicked);
buttonListWidget->clearFocus();