Merge branch '2309bug-0718' into 'yhkylin/v101'

fix bug 176581 控制面板VPN【···】弹出菜单偏移问题 & update changelog

See merge request kylinos-src/kylin-nm!222
This commit is contained in:
赵世旭 2023-07-20 02:18:51 +00:00
commit d3a2589fc7
2 changed files with 13 additions and 2 deletions

11
debian/changelog vendored
View File

@ -1,3 +1,14 @@
kylin-nm (3.24.0.0-0k2.9) v101; urgency=medium
* BUG号
-#176581 【VPN】设置-网络-VPN界面点击“。。。”弹出的选项窗口有偏移
-#180890 【整机-联想开天】【M70Z-G1TS】移动热点开启显示异常【5.4.18-93-generic】
* 需求号:
* 其他改动:
* 影响域:自身
-- zhangyuanyuan1 <zhangyuanyuan1@kylinos.cn> Tue, 20 Jul 2023 10:14:25 +0800
kylin-nm (3.24.0.0-0k2.8) v101; urgency=medium
* BUG号

View File

@ -176,11 +176,11 @@ bool VpnItem::eventFilter(QObject *watched, QEvent *event)
{
//菜单右边界与按钮右边界对齐
if (event->type() == QEvent::Show && watched == m_moreMenu) {
int menuXPos = m_moreMenu->pos().x();
int menuWidth = m_moreMenu->size().width();
int btnWidth = m_moreButton->size().width();
int btnGlobalXPos = mapToGlobal(m_moreButton->pos()).x();
QPoint pos = QPoint (menuXPos - menuWidth + btnWidth, m_moreMenu->pos().y());
QPoint pos = QPoint (btnGlobalXPos - menuWidth + btnWidth, m_moreMenu->pos().y());
m_moreMenu->move(pos);
return true;
}