bradient: Use "Size" instead of "Split" cursors for resizing

SizeVerCursor: "A cursor used for elements that are used to
vertically resize top-level windows."

SizeHorCursor: "A cursor used for elements that are used to
horizontally resize top-level windows."

Pick-to: 6.7 6.6 6.5
Change-Id: Ib780269120aa373cd9fcf84826683cccd1dc4f4d
Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
Kai Uwe Broulik 2024-01-04 19:13:15 +01:00
parent 84aed4465e
commit 5829719cc0

View File

@ -370,7 +370,7 @@ void QWaylandBradientDecoration::processPointerBottom(QWaylandInputDevice *input
//bottom bit
#if QT_CONFIG(cursor)
if (type == PointerType::Mouse)
waylandWindow()->setMouseCursor(inputDevice, Qt::SplitVCursor);
waylandWindow()->setMouseCursor(inputDevice, Qt::SizeVerCursor);
#endif
startResize(inputDevice, Qt::BottomEdge, b);
}
@ -386,7 +386,7 @@ void QWaylandBradientDecoration::processPointerLeft(QWaylandInputDevice *inputDe
Q_UNUSED(mods);
#if QT_CONFIG(cursor)
if (type == PointerType::Mouse)
waylandWindow()->setMouseCursor(inputDevice, Qt::SplitHCursor);
waylandWindow()->setMouseCursor(inputDevice, Qt::SizeHorCursor);
#else
Q_UNUSED(type);
#endif
@ -403,7 +403,7 @@ void QWaylandBradientDecoration::processPointerRight(QWaylandInputDevice *inputD
Q_UNUSED(mods);
#if QT_CONFIG(cursor)
if (type == PointerType::Mouse)
waylandWindow()->setMouseCursor(inputDevice, Qt::SplitHCursor);
waylandWindow()->setMouseCursor(inputDevice, Qt::SizeHorCursor);
#else
Q_UNUSED(type);
#endif