From 4c8df3a5dd535c471522b476f73b3990eb4978c5 Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 4 Oct 2013 11:29:46 +0000 Subject: [PATCH] GraphicsView: invert the Y axis direction from down to up. --- src/HYDROGUI/HYDROGUI_Shape.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.2