Revert "feat: 解决鼠标移动右键菜单消失问题"

This reverts commit 5a5703da6a3a5c4f71d3c005bc3654d43db385f6.

Change-Id: I6fdea4c6ec8d6b6f9cfd9dbafc8fbdac0ccb13b1
This commit is contained in:
songwentao 2021-11-19 16:06:11 +08:00
parent a5bb734b36
commit 6437dd9c3e

View File

@ -48,8 +48,7 @@ Menu::Menu(QWidget *dockItem, QWidget *parent)
void Menu::onButtonPress()
{
QPoint curPos = QCursor::pos() * qApp->devicePixelRatio();
if (!QRect(m_dockInter->frontendWindowRect()).contains(curPos))
if (!QRect(m_dockInter->frontendWindowRect()).contains(QCursor::pos()))
this->hide();
}