src/ui/canvas.cpp

changeset 104
cd4df75924b7
parent 103
94719518e310
child 105
6ca6e8c647d4
equal deleted inserted replaced
103:94719518e310 104:cd4df75924b7
87 PartRenderer::mousePressEvent(event); 87 PartRenderer::mousePressEvent(event);
88 } 88 }
89 89
90 void Canvas::mouseReleaseEvent(QMouseEvent* event) 90 void Canvas::mouseReleaseEvent(QMouseEvent* event)
91 { 91 {
92 MouseClickInfo info;
93 info.click = this->totalMouseMove < (2.0 / sqrt(2)) * 5.0;
94 emit mouseClick(info);
92 if (this->totalMouseMove < (2.0 / sqrt(2)) * 5.0) 95 if (this->totalMouseMove < (2.0 / sqrt(2)) * 5.0)
93 { 96 {
94 if (this->highlighted == ldraw::NULL_ID) 97 if (this->highlighted == ldraw::NULL_ID)
95 { 98 {
96 this->selection = {}; 99 this->selection = {};

mercurial