Skip to content
Snippets Groups Projects
Commit 2c549eec authored by Baton Théau's avatar Baton Théau
Browse files

Changement de l'odre entre le dessin et l'emit

parent bbcd8aa4
No related branches found
No related tags found
1 merge request!1Dev
......@@ -87,8 +87,8 @@ namespace ui {
pixelPosition.setY(abs(pixelPosition.y()) / this->_zoom);
}
this->repaint();
emit this->mouseReleased(*this, this->_image, pixelPosition, this->_selection, *e);
this->repaint();
}
void ImageArea::keyPressEvent(QKeyEvent * event) {
......@@ -109,8 +109,8 @@ namespace ui {
pixelPosition.setY(abs(pixelPosition.y()) / this->_zoom);
}
this->repaint();
emit this->keyboardRelease(*this, this->_image, pixelPosition,this->_selection, *event);
this->repaint();
}
void ImageArea::wheelEvent(QWheelEvent *event) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment