Closed mhduiy closed 3 months ago
关键摘要:
TipsWidget::setText
和TipsWidget::setTextList
函数中,使用fontMetrics().horizontalAdvance(m_text)
替换fontMetrics().width(m_text) + 20
来计算文本宽度,这是一个改进的计算方法,因为它考虑了文本的宽度而非仅仅是其宽度加上20像素。TipsWidget::paintEvent
函数中,添加了option.setWrapMode(QTextOption::NoWrap);
来设置文本选项,以确保文本在一行内显示完整。是否建议立即修改:
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: max-lvs, mhduiy
The full list of commands accepted by this bot can be found here.
/merge
remove the margins from the dock plugin tooltips, which will be managed uniformly by the dock
Issue: https://github.com/linuxdeepin/developer-center/issues/9997