79 }); |
79 }); |
80 connect(this->renderer, &Canvas::mouseMove, this, [this](Canvas* canvas, QMouseEvent* event) |
80 connect(this->renderer, &Canvas::mouseMove, this, [this](Canvas* canvas, QMouseEvent* event) |
81 { |
81 { |
82 Q_EMIT this->mouseMove(this, canvas, event); |
82 Q_EMIT this->mouseMove(this, canvas, event); |
83 }); |
83 }); |
|
84 connect(this->renderer, &Canvas::keyReleased, this, [this](Canvas* canvas, QKeyEvent* event) |
|
85 { |
|
86 Q_EMIT this->keyReleased(this, canvas, event); |
|
87 }); |
84 connect(&this->vertexMap, &VertexMap::verticesChanged, [&]() |
88 connect(&this->vertexMap, &VertexMap::verticesChanged, [&]() |
85 { |
89 { |
86 this->renderer->rebuildVertices(this); |
90 this->renderer->rebuildVertices(this); |
87 }); |
91 }); |
88 } |
92 } |