From 300ce31d7047a038c882235979988d928159ee30 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 9 Apr 2012 15:08:18 -0700 Subject: Fix constness of QPlatformCursorImage::hostpot() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit QPlatformCursorImage::hotspot() should be const. Change-Id: I2b517098e75b013947386a5a620a15dc48e76cec Reviewed-by: Jørgen Lind --- src/gui/kernel/qplatformcursor_qpa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/kernel/qplatformcursor_qpa.h b/src/gui/kernel/qplatformcursor_qpa.h index e29cf87d03..a31501958c 100644 --- a/src/gui/kernel/qplatformcursor_qpa.h +++ b/src/gui/kernel/qplatformcursor_qpa.h @@ -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); -- cgit v1.2.3