From 2c549eecd915e7c4fe71034ee48d4d6d825ff8d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Baton=20Th=C3=A9au?= <theau.baton@etu-amu.univ.fr> Date: Tue, 23 Jan 2024 10:18:34 +0100 Subject: [PATCH] Changement de l'odre entre le dessin et l'emit --- IHM_Retouche_Photo/ui/view/imagearea.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IHM_Retouche_Photo/ui/view/imagearea.cpp b/IHM_Retouche_Photo/ui/view/imagearea.cpp index 383577f..242b7e4 100644 --- a/IHM_Retouche_Photo/ui/view/imagearea.cpp +++ b/IHM_Retouche_Photo/ui/view/imagearea.cpp @@ -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) { -- GitLab