290 |
290 |
291 void Canvas::clearSelection() |
291 void Canvas::clearSelection() |
292 { |
292 { |
293 this->selection.clear(); |
293 this->selection.clear(); |
294 this->compiler->setSelectedObjects(this->selection); |
294 this->compiler->setSelectedObjects(this->selection); |
295 emit selectionChanged(this->selection); |
295 Q_EMIT selectionChanged(this->selection); |
296 this->update(); |
296 this->update(); |
297 } |
297 } |
298 |
298 |
299 void Canvas::addToSelection(ldraw::id_t id) |
299 void Canvas::addToSelection(ldraw::id_t id) |
300 { |
300 { |
301 this->selection.insert(id); |
301 this->selection.insert(id); |
302 this->compiler->setSelectedObjects(this->selection); |
302 this->compiler->setSelectedObjects(this->selection); |
303 emit selectionChanged(this->selection); |
303 Q_EMIT selectionChanged(this->selection); |
304 this->update(); |
304 this->update(); |
305 } |
305 } |
306 |
306 |
307 void Canvas::setOverpaintCallback(Canvas::OverpaintCallback fn) |
307 void Canvas::setOverpaintCallback(Canvas::OverpaintCallback fn) |
308 { |
308 { |