src/ui/canvas.cpp

changeset 112
5760cbb32bc0
parent 111
1f42c03fafca
child 113
c0d064521ee0
equal deleted inserted replaced
111:1f42c03fafca 112:5760cbb32bc0
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 {

mercurial