Skip to content

fix: DFloatingMessage宽度计算#649

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

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

Conversation

@18202781743
Copy link
Contributor

DFloatingMessage的子控件MessageLabel支持自动换行,当文本内容包含换行符的时候,通过TextSingleLine计算的Size会与实际不符,导致整个控件宽度过大

Log:
Influence: DFloatingMessage的显示效果
Bug: https://pms.uniontech.com/bug-view-308569.html
Change-Id: I571a4c24d84cabfabaaf4a70bca8ec931347b157

 DFloatingMessage的子控件MessageLabel支持自动换行,当文本内容包含换行符的时候,通过TextSingleLine计算的Size会与实际不符,导致整个控件宽度过大

Log:
Influence: DFloatingMessage的显示效果
Bug: https://pms.uniontech.com/bug-view-308569.html
Change-Id: I571a4c24d84cabfabaaf4a70bca8ec931347b157
@18202781743 18202781743 requested review from BLumia and mhduiy March 27, 2025 08:47
deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Mar 27, 2025
Synchronize source files from linuxdeepin/dtkwidget.

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

deepin pr auto review

关键摘要:

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

是否建议立即修改:

@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 27, 2025
Synchronize source files from linuxdeepin/dtkwidget.

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

deepin-bot bot commented Mar 27, 2025

This pr force merged! (status: blocked)

@deepin-bot deepin-bot bot merged commit 7387db7 into linuxdeepin:master Mar 27, 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