diff -r 94719518e310 -r cd4df75924b7 src/ui/canvas.h --- 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& newSelection); + void mouseClick(const MouseClickInfo& info); private: void updateGridMatrix(); glm::vec3 cameraVector() const; @@ -35,3 +37,8 @@ int totalMouseMove = 0; QSet selection; }; + +struct Canvas::MouseClickInfo +{ + bool click; +};