Paint the icon at the requested size and state.
(self, painter, rect, mode, state)
| 700 | return self.toolbar.palette().color(self.toolbar.backgroundRole()).value() < 128 |
| 701 | |
| 702 | def paint(self, painter, rect, mode, state): |
| 703 | """Paint the icon at the requested size and state.""" |
| 704 | pixmap = self.pixmap(rect.size(), mode, state) |
| 705 | if not pixmap.isNull(): |
| 706 | painter.drawPixmap(rect, pixmap) |
| 707 | |
| 708 | def pixmap(self, size, mode, state): |
| 709 | """Generate a pixmap for the requested size, mode, and state.""" |
no test coverage detected