Closed ArchieMeng closed 5 months ago
关键摘要:
ItemWidget::paintEvent
函数中,对QString
的赋值应该在if
判断的内部,以确保在m_funcButton
可见时不会进行不必要的计算。Utils::getElidedText
函数的使用可能会导致性能问题,因为每次paintEvent
调用都会计算文本的缩进,如果这个函数可以避免不必要的计算,应该考虑优化。合并相似的问题是否建议立即修改:
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: ArchieMeng, BLumia
The full list of commands accepted by this bot can be found here.
Extend elidedText limits when being hovered at
Issue: https://github.com/linuxdeepin/developer-center/issues/7690 Log: Remote server item text overlaps with buttons