Closed 18202781743 closed 5 months ago
关键摘要:
Screen.desktopAvailableWidth
和Screen.desktopAvailableHeight
,但这些属性在Qt6中已经被移除。建议使用QApplication.instance().primaryScreen().availableSize()
来替代。onClicked
现在接受一个mouse
参数,但在函数体中并没有使用该参数。如果不需要,应该移除。if
条件判断中,使用了control.mapFromGlobal(0, Screen.desktopAvailableHeight - contextMenu.height).y
来获取坐标,但这种用法在Qt6中已经废弃,建议使用control.mapFromGlobal(QPoint(0, Screen.desktopAvailableHeight - contextMenu.height))
来替代。是否建议立即修改: 是
Doc Check bot :green_circle: Document Coverage Check Passed!
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: 18202781743, kegechen
The full list of commands accepted by this bot can be found here.
Adding bounding check when show menu.
Issue: https://github.com/linuxdeepin/developer-center/issues/8472