| 207 | } |
| 208 | |
| 209 | void TrivialTileEditor::paintPoint(QPainter& painter, QPoint p) |
| 210 | { |
| 211 | QPoint p1 = screenPoint(p); |
| 212 | QPoint p2 = screenPoint(p+QPoint(1,1)); |
| 213 | QColor c = img.color(img.scanLine(p.y())[p.x()]); |
| 214 | painter.fillRect(QRect(p1,p2-QPoint(1,1)), c); |
| 215 | } |
| 216 | |
| 217 | void TrivialTileEditor::mousePressEvent(QMouseEvent* e) |
| 218 | { |
nothing calls this directly
no outgoing calls
no test coverage detected