Merge branch 'dbus-interface' into 'dbus-interface'

解决BUG 124417 【输入法】【PC/TM】连接无线网界面无法使用软键盘

See merge request kylin-desktop/kylin-nm!630
This commit is contained in:
赵世旭 2022-06-16 11:24:59 +00:00
commit 857db2643e
1 changed files with 1 additions and 0 deletions

View File

@ -233,6 +233,7 @@ void WlanListItem::initWlanUI()
m_pwdLineEdit = new KPasswordEdit(m_pwdFrame);
m_pwdLineEdit->setFixedWidth(LINEEDIT_WIDTH);
m_pwdLineEdit->setClearButtonEnabled(false); //禁用ClearBtn按钮
m_pwdLineEdit->setAttribute(Qt::WA_InputMethodEnabled, true); //打开输入法
// m_pwdLineEdit->setAttribute(Qt::WA_InputMethodEnabled, false);
// m_pwdLineEdit->setContextMenuPolicy(Qt::NoContextMenu);