aboutsummaryrefslogtreecommitdiffhomepage
path: root/qt/ScintillaEditBase/PlatQt.cpp
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-17 16:02:45 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-17 16:02:45 +1100
commitd5b1240eece116b2a13b635d25b041bf0de19305 (patch)
tree477c8b5c2bf07db996f5520957a447ee256eacf8 /qt/ScintillaEditBase/PlatQt.cpp
parentf0861077dfa88fd1e2846b164701eca5de63c292 (diff)
downloadscintilla-mirror-d5b1240eece116b2a13b635d25b041bf0de19305.tar.gz
Change Window::Cursor to an enum class.
Diffstat (limited to 'qt/ScintillaEditBase/PlatQt.cpp')
-rw-r--r--qt/ScintillaEditBase/PlatQt.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp
index 9cd68a2df..2488d9687 100644
--- a/qt/ScintillaEditBase/PlatQt.cpp
+++ b/qt/ScintillaEditBase/PlatQt.cpp
@@ -716,14 +716,14 @@ void Window::SetCursor(Cursor curs)
Qt::CursorShape shape;
switch (curs) {
- case cursorText: shape = Qt::IBeamCursor; break;
- case cursorArrow: shape = Qt::ArrowCursor; break;
- case cursorUp: shape = Qt::UpArrowCursor; break;
- case cursorWait: shape = Qt::WaitCursor; break;
- case cursorHoriz: shape = Qt::SizeHorCursor; break;
- case cursorVert: shape = Qt::SizeVerCursor; break;
- case cursorHand: shape = Qt::PointingHandCursor; break;
- default: shape = Qt::ArrowCursor; break;
+ case Cursor::text: shape = Qt::IBeamCursor; break;
+ case Cursor::arrow: shape = Qt::ArrowCursor; break;
+ case Cursor::up: shape = Qt::UpArrowCursor; break;
+ case Cursor::wait: shape = Qt::WaitCursor; break;
+ case Cursor::horizontal: shape = Qt::SizeHorCursor; break;
+ case Cursor::vertical: shape = Qt::SizeVerCursor; break;
+ case Cursor::hand: shape = Qt::PointingHandCursor; break;
+ default: shape = Qt::ArrowCursor; break;
}
QCursor cursor = QCursor(shape);