Method
updateMimeData
(self,
hasColor, color,
hasHtml, html,
hasImage, image,
hasText, text,
hasUrls, urls
)
Source from the content-addressed store, hash-verified
| 66 | clipboard.blockSignals(False) |
| 67 | |
| 68 | def updateMimeData(self, |
| 69 | hasColor, color, |
| 70 | hasHtml, html, |
| 71 | hasImage, image, |
| 72 | hasText, text, |
| 73 | hasUrls, urls |
| 74 | ): |
| 75 | # 远程的剪贴板同步到客户端 |
| 76 | clipboard = QApplication.clipboard() |
| 77 | clipboard.blockSignals(True) |
| 78 | data = QMimeData() |
| 79 | if hasColor: |
| 80 | data.setColorData(color) |
| 81 | if hasHtml: |
| 82 | data.setHtml(html) |
| 83 | if hasImage: |
| 84 | data.setImageData(image) |
| 85 | if hasText: |
| 86 | data.setText(text) |
| 87 | if hasUrls: |
| 88 | data.setUrls(urls) |
| 89 | clipboard.setMimeData(data) |
| 90 | clipboard.blockSignals(False) |
| 91 | |
| 92 | |
| 93 | if __name__ == '__main__': |
Callers
nothing calls this directly
Tested by
no test coverage detected