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 = {}; |