aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates/qquickselectionrectangle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quicktemplates/qquickselectionrectangle.cpp')
-rw-r--r--src/quicktemplates/qquickselectionrectangle.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/quicktemplates/qquickselectionrectangle.cpp b/src/quicktemplates/qquickselectionrectangle.cpp
index dedde0858a..95e28fd1ca 100644
--- a/src/quicktemplates/qquickselectionrectangle.cpp
+++ b/src/quicktemplates/qquickselectionrectangle.cpp
@@ -315,7 +315,9 @@ QQuickItem *QQuickSelectionRectanglePrivate::createHandle(QQmlComponent *delegat
QQuickHoverHandler *hoverHandler = new QQuickHoverHandler();
hoverHandler->setTarget(nullptr);
hoverHandler->setParentItem(handleItem);
+#if QT_CONFIG(cursor)
hoverHandler->setCursorShape(Qt::SizeFDiagCursor);
+#endif
hoverHandler->setBlocking(true);
// Add a dummy TapHandler that blocks the user from being
@@ -339,12 +341,16 @@ QQuickItem *QQuickSelectionRectanglePrivate::createHandle(QQmlComponent *delegat
m_draggedHandle = handleItem;
updateHandles();
updateDraggingState(true);
+#if QT_CONFIG(cursor)
QGuiApplication::setOverrideCursor(Qt::SizeFDiagCursor);
+#endif
} else {
m_scrollTimer.stop();
m_selectable->normalizeSelection();
updateDraggingState(false);
+#if QT_CONFIG(cursor)
QGuiApplication::restoreOverrideCursor();
+#endif
}
});