summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorHarald Fernengel <harald.fernengel@nokia.com>2010-11-09 11:39:14 (GMT)
committerHarald Fernengel <harald.fernengel@nokia.com>2010-11-09 11:40:48 (GMT)
commit0a56b91991a4cce23634173eda4c5bafcd53230b (patch)
treed2bf1f1ac4849fe3075ae189f6f632df48abd2cc /src/opengl
parent8aee86b8ce4700f48b8a30752cb2293860957bb7 (diff)
downloadQt-0a56b91991a4cce23634173eda4c5bafcd53230b.zip
Qt-0a56b91991a4cce23634173eda4c5bafcd53230b.tar.gz
Qt-0a56b91991a4cce23634173eda4c5bafcd53230b.tar.bz2
Make operator QRectF const
This allows us to convert a QGLRect to a QRectF also in const functions. Function is inline and private, no ABI break. Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h b/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h
index 46029b9..b8c1018 100644
--- a/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h
+++ b/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h
@@ -93,7 +93,7 @@ struct QGLRect
GLfloat right;
GLfloat bottom;
- operator QRectF() {return QRectF(left, top, right-left, bottom-top);}
+ operator QRectF() const {return QRectF(left, top, right-left, bottom-top);}
};
class QGL2PEXVertexArray