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/qwindowsdrag.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/qwindowsdrag.cpp')
-rw-r--r-- | src/plugins/platforms/windows/qwindowsdrag.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/windows/qwindowsdrag.cpp b/src/plugins/platforms/windows/qwindowsdrag.cpp index 8d4e4dc611..b7d225cb00 100644 --- a/src/plugins/platforms/windows/qwindowsdrag.cpp +++ b/src/plugins/platforms/windows/qwindowsdrag.cpp @@ -260,7 +260,7 @@ private: }; QWindowsOleDropSource::QWindowsOleDropSource(QWindowsDrag *drag) - : m_mode(QWindowsCursor::cursorState() != QWindowsCursor::CursorSuppressed ? MouseDrag : TouchDrag) + : m_mode(QWindowsCursor::cursorState() != QWindowsCursor::State::Suppressed ? MouseDrag : TouchDrag) , m_drag(drag) , m_windowUnderMouse(QWindowsContext::instance()->windowUnderMouse()) , m_currentButtons(Qt::NoButton) @@ -455,7 +455,7 @@ QWindowsOleDropSource::GiveFeedback(DWORD dwEffect) break; case TouchDrag: // "Touch drag" with an unsuppressed cursor may happen with RDP (see createCursors()) - if (QWindowsCursor::cursorState() != QWindowsCursor::CursorSuppressed) + if (QWindowsCursor::cursorState() != QWindowsCursor::State::Suppressed) SetCursor(nullptr); if (!m_touchDragWindow) m_touchDragWindow = new QWindowsDragCursorWindow; |