Skip to content

fix: DToolTip宽度计算#650

Merged
deepin-bot[bot] merged 1 commit intolinuxdeepin:masterfrom
18202781743:master
Mar 31, 2025
Merged

fix: DToolTip宽度计算#650
deepin-bot[bot] merged 1 commit intolinuxdeepin:masterfrom
18202781743:master

Conversation

@18202781743
Copy link
Contributor

DToolTip的SizeHint指定了用单行计算,当DToolTip设置了自动换行,并且文本包含换行符时,会导致计算的宽度错误

Log:
Influence: DToolTip
Bug: https://pms.uniontech.com/bug-view-308569.html
Change-Id: I690a85f34b961a531444d32fe43b3a50ef38dc51

 DToolTip的SizeHint指定了用单行计算,当DToolTip设置了自动换行,并且文本包含换行符时,会导致计算的宽度错误

Log:
Influence: DToolTip
Bug: https://pms.uniontech.com/bug-view-308569.html
Change-Id: I690a85f34b961a531444d32fe43b3a50ef38dc51
@18202781743 18202781743 requested review from BLumia and mhduiy March 31, 2025 01:49
@deepin-ci-robot
Copy link
Contributor

deepin pr auto review

关键摘要:

  • fontMetrics().size({}, text()); 中的空参数可能是一个错误,应该使用 Qt::TextSingleLine

是否建议立即修改:

deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Mar 31, 2025
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#650
@deepin-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 18202781743, mhduiy

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@18202781743
Copy link
Contributor Author

/forcemerge

18202781743 pushed a commit to linuxdeepin/dtk6widget that referenced this pull request Mar 31, 2025
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#650
@deepin-bot
Copy link
Contributor

deepin-bot bot commented Mar 31, 2025

This pr force merged! (status: blocked)

@deepin-bot deepin-bot bot merged commit ce49551 into linuxdeepin:master Mar 31, 2025
16 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants