| 254 | } |
| 255 | |
| 256 | void TrivialTileEditor::mouseMoveEvent(QMouseEvent* e) |
| 257 | { |
| 258 | QPoint p = imagePoint(e->pos()); |
| 259 | if ( !img.rect().contains(p) ) |
| 260 | return; |
| 261 | uchar& pixel = img.scanLine(p.y())[p.x()]; |
| 262 | pixel = penpixel; |
| 263 | QPainter painter(this); |
| 264 | paintPoint(painter,p); |
| 265 | } |
| 266 | |
| 267 | QPoint TrivialTileEditor::imagePoint(QPoint p) const |
| 268 | { |
nothing calls this directly
no outgoing calls
no test coverage detected