summaryrefslogtreecommitdiffstats
path: root/src/platformsupport/dnd/qsimpledrag.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/platformsupport/dnd/qsimpledrag.cpp')
-rw-r--r--src/platformsupport/dnd/qsimpledrag.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/platformsupport/dnd/qsimpledrag.cpp b/src/platformsupport/dnd/qsimpledrag.cpp
index 18e6b97e3c..efaede4c5f 100644
--- a/src/platformsupport/dnd/qsimpledrag.cpp
+++ b/src/platformsupport/dnd/qsimpledrag.cpp
@@ -237,6 +237,7 @@ void QBasicDrag::exitDndEventLoop()
void QBasicDrag::updateCursor(Qt::DropAction action)
{
+#ifndef QT_NO_CURSOR
Qt::CursorShape cursorShape = Qt::ForbiddenCursor;
if (canDrop()) {
switch (action) {
@@ -267,6 +268,7 @@ void QBasicDrag::updateCursor(Qt::DropAction action)
}
}
}
+#endif
updateAction(action);
}