From: ouv Date: Fri, 4 Oct 2013 11:29:46 +0000 (+0000) Subject: GraphicsView: invert the Y axis direction from down to up. X-Git-Tag: BR_hydro_v_0_3~95 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4c8df3a5dd535c471522b476f73b3990eb4978c5;p=modules%2Fhydro.git GraphicsView: invert the Y axis direction from down to up. --- diff --git a/src/HYDROGUI/HYDROGUI_Shape.cxx b/src/HYDROGUI/HYDROGUI_Shape.cxx index 6bc515f3..9d7ca4da 100644 --- a/src/HYDROGUI/HYDROGUI_Shape.cxx +++ b/src/HYDROGUI/HYDROGUI_Shape.cxx @@ -141,7 +141,7 @@ void HYDROGUI_Shape::update( const bool theIsUpdateViewer ) int aHeight = anImage.height(); QTransform anInversion = QTransform::fromScale( -1, -1 ); - anImage = anImage.transformed( anYInversion * aTrsf, Qt::SmoothTransformation ); + anImage = anImage.transformed( anInversion * aTrsf, Qt::SmoothTransformation ); // temporary optimization, to reduce the saved image size (and the texture quality) QImage anImageToSave = reduceTexture( anImage, 500 );