diff -r a4055f67b9c7 -r cb81ecb5fb23 src/ui/canvas.cpp --- a/src/ui/canvas.cpp Thu Feb 13 15:25:01 2020 +0200 +++ b/src/ui/canvas.cpp Wed Feb 26 02:21:07 2020 +0200 @@ -22,8 +22,21 @@ void Canvas::mouseMoveEvent(QMouseEvent* event) { +#if 0 + std::optional p = this->cameraToGrid(event->pos()); + if (p.has_value()) + { + this->newStatusText("Position: (%1, %2, %3)"_q.arg(p->x).arg(p->y).arg(p->z)); + } + else + { + this->newStatusText("Position: "_q); + } +#else + const QPointF originAtCamera = this->worldToCamera({1, 1, 1}); + this->newStatusText("Origin at (%1, %2), cursor at (%3, %4)"_q.arg(originAtCamera.x()).arg(originAtCamera.y()).arg(event->pos().x()).arg(event->pos().y())); +#endif const ldraw::Id id = this->pick(event->pos()); - this->newStatusText("Selected: %1"_q.arg(id.value)); this->highlighted = id; this->totalMouseMove += (event->pos() - this->lastMousePosition).manhattanLength(); this->lastMousePosition = event->pos();