(self, event)
| 146 | self.callback() # 回调 |
| 147 | |
| 148 | def paintEvent(self, event): |
| 149 | # 圆角以及背景色 |
| 150 | super(NotificationItem, self).paintEvent(event) |
| 151 | painter = QPainter(self) |
| 152 | path = QPainterPath() |
| 153 | path.addRoundedRect(QRectF(self.rect()), 6, 6) |
| 154 | painter.fillPath(path, Qt.white) |
| 155 | |
| 156 | |
| 157 | class NotificationWindow(QListWidget): |
nothing calls this directly
no outgoing calls
no test coverage detected