Fix constness of QPlatformCursorImage::hostpot()
authorGirish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Mon, 9 Apr 2012 22:08:18 +0000 (15:08 -0700)
committerQt by Nokia <qt-info@nokia.com>
Tue, 10 Apr 2012 06:25:51 +0000 (08:25 +0200)
QPlatformCursorImage::hotspot() should be const.

Change-Id: I2b517098e75b013947386a5a620a15dc48e76cec
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
src/gui/kernel/qplatformcursor_qpa.h

index e29cf87..a315019 100644 (file)
@@ -60,7 +60,7 @@ public:
     QPlatformCursorImage(const uchar *data, const uchar *mask, int width, int height, int hotX, int hotY)
     { set(data, mask, width, height, hotX, hotY); }
     QImage * image() { return &cursorImage; }
-    QPoint hotspot() { return hot; }
+    QPoint hotspot() const { return hot; }
     void set(const uchar *data, const uchar *mask, int width, int height, int hotX, int hotY);
     void set(const QImage &image, int hx, int hy);
     void set(Qt::CursorShape);