--- a/src/ui/canvas.h Sun May 16 22:41:00 2021 +0300 +++ b/src/ui/canvas.h Mon Jul 19 19:28:16 2021 +0300 @@ -7,6 +7,7 @@ { Q_OBJECT public: + struct MouseClickInfo; Canvas( Model* model, DocumentManager* documents, @@ -23,6 +24,7 @@ signals: void newStatusText(const QString& newStatusText); void selectionChanged(const QSet<ldraw::id_t>& newSelection); + void mouseClick(const MouseClickInfo& info); private: void updateGridMatrix(); glm::vec3 cameraVector() const; @@ -35,3 +37,8 @@ int totalMouseMove = 0; QSet<ldraw::id_t> selection; }; + +struct Canvas::MouseClickInfo +{ + bool click; +};