linuxdeepin / dtkwidget

Deepin Toolkit, widget module for DDE look and feel
Other
203 stars 144 forks source link

fix: 修复打印预览,切换打印机的时候预览图颜色显示异常 #527

Closed mhduiy closed 11 months ago

mhduiy commented 11 months ago

颜色选项默认选择第一项,第一项有可能是彩色或黑白,QCombobox在设置与之前相同的项的时候其CurrentIndexChanged信号不会被触发,正因如此,导致预览图没有及时没刷新,修改为在为组合框添加item的时候,将其currentIndex设置为-1,保证后续的CurrentIndexChanged信号及时被触发

Log: 修复打印预览,切换打印机的时候预览图颜色显示异常 Bug: https://pms.uniontech.com/bug-view-220315.html Influence: 打印预览切换打印机时预览图的颜色表现

github-actions[bot] commented 11 months ago

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

deepin-bot[bot] commented 11 months ago

Doc Check bot :green_circle: Document Coverage Check Passed!

kegechen commented 11 months ago

@mhduiy 签一下 CLA, 还有 commit 中的changeid这个要去掉(可能要暂时移除一下 .git/hooks/commit-msg

mhduiy commented 11 months ago

I have read the CLA Document and I hereby sign the CLA.

mhduiy commented 11 months ago

I have read the CLA Document and I hereby sign the CLA.

kegechen commented 11 months ago

/recheck

mhduiy commented 11 months ago

/recheck

mhduiy commented 11 months ago

/check-cla

deepin-ci-robot commented 11 months ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

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

Needs approval from an approver in each of these files: - **[debian/deepin/OWNERS](https://github.com/linuxdeepin/dtkwidget/blob/master/debian/deepin/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment