Closed FeiWang1119 closed 1 month ago
关键摘要:
paintEvent
函数中添加了对isChecked()
的检查,确保了在绘制开关按钮时,checked
状态是最新的。DDciIcon::fromTheme
方法动态获取图标,这样可以避免硬编码图标字符串,提高代码的可维护性。checkedChanged
信号的发射,以便在开关状态改变时触发相关的槽函数。是否建议立即修改:
isChecked()
方法返回的布尔值是如何被用来更新d->checked
状态的,以及为什么需要发射checkedChanged
信号。DDciIcon::fromTheme
方法在所有情况下都能正确获取图标,以避免潜在的图标加载问题。Doc Check bot :green_circle: Document Coverage Check Passed!
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: FeiWang1119, kegechen
The full list of commands accepted by this bot can be found here.
correct the wrong initial status of switch button
Bug: https://pms.uniontech.com/bug-view-276221.html Log: