Fri, 07 Feb 2020 01:58:34 +0200
added selection highlighting
#include <QMouseEvent> #include "canvas.h" Canvas::Canvas( Model* model, DocumentManager* documents, const ldraw::ColorTable& colorTable, QWidget* parent) : PartRenderer{model, documents, colorTable, parent} { this->setMouseTracking(true); } void Canvas::mouseMoveEvent(QMouseEvent* event) { const ldraw::Id id = this->pick(event->pos()); this->newStatusText("Selected: %1"_q.arg(id.value)); this->setHighlight(id); PartRenderer::mouseMoveEvent(event); }