diff options
author | Anton Kudryavtsev <anton.kudryavtsev@corp.mail.ru> | 2018-09-20 11:53:46 +0300 |
---|---|---|
committer | Anton Kudryavtsev <antkudr@mail.ru> | 2018-09-25 19:29:37 +0000 |
commit | 9941719a8dc60cb7edfa719605c89c3fac4b2346 (patch) | |
tree | 2cb5a3541247257cce9cc1e2f7868d72155bd9b7 /src/plugins/platforms/windows/qwindowscursor.cpp | |
parent | c8178fd52e9b07efe4d96f6c8879d5b2ccf74bb9 (diff) |
QWindowsCursor: fix typo and change enum CursorState into enum class
Change-Id: I55b539da99254d3f7318193669c409552e429a6a
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowscursor.cpp')
-rw-r--r-- | src/plugins/platforms/windows/qwindowscursor.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/platforms/windows/qwindowscursor.cpp b/src/plugins/platforms/windows/qwindowscursor.cpp index 825602e7dc..4f669a5509 100644 --- a/src/plugins/platforms/windows/qwindowscursor.cpp +++ b/src/plugins/platforms/windows/qwindowscursor.cpp @@ -660,18 +660,18 @@ QPoint QWindowsCursor::mousePosition() return QPoint(p.x, p.y); } -QWindowsCursor::CursorState QWindowsCursor::cursorState() +QWindowsCursor::State QWindowsCursor::cursorState() { enum { cursorShowing = 0x1, cursorSuppressed = 0x2 }; // Windows 8: CURSOR_SUPPRESSED CURSORINFO cursorInfo; cursorInfo.cbSize = sizeof(CURSORINFO); if (GetCursorInfo(&cursorInfo)) { - if (cursorInfo.flags & CursorShowing) - return CursorShowing; + if (cursorInfo.flags & cursorShowing) + return State::Showing; if (cursorInfo.flags & cursorSuppressed) - return CursorSuppressed; + return State::Suppressed; } - return CursorHidden; + return State::Hidden; } QPoint QWindowsCursor::pos() const |