diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2014-05-14 11:34:18 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-15 12:53:09 +0200 |
commit | f618dbdd04d1efa087dfa9a5aa792c315a5bc500 (patch) | |
tree | 0e166d73b09d9f4249439be822814b20320120b8 /src/plugins/platforms/windows/qwindowscursor.h | |
parent | 60d0b900d77cd2c13c465314e9af91341f76e854 (diff) |
Windows: Refactor cursor creation code.
Factor out a function creating bitmap cursors, streamline code.
Task-number: QTBUG-37862
Change-Id: Id9d4af34acb2cf15d8553d5e5a6390fae6014ff6
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowscursor.h')
-rw-r--r-- | src/plugins/platforms/windows/qwindowscursor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/windows/qwindowscursor.h b/src/plugins/platforms/windows/qwindowscursor.h index 31da4e367d..81ae051824 100644 --- a/src/plugins/platforms/windows/qwindowscursor.h +++ b/src/plugins/platforms/windows/qwindowscursor.h @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the plugins of the Qt Toolkit. @@ -105,7 +105,7 @@ public: virtual QPoint pos() const { return mousePosition(); } virtual void setPos(const QPoint &pos); - static HCURSOR createPixmapCursor(const QPixmap &pixmap, int hotX, int hotY); + static HCURSOR createPixmapCursor(const QPixmap &pixmap, const QPoint &hotSpot); static HCURSOR createSystemCursor(const QCursor &c); static QPoint mousePosition(); static CursorState cursorState(); |