From bcbcb8d0d60b94fe9e739a9c95b4e78ac8184a0e Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Tue, 14 Feb 2017 11:47:24 +0100 Subject: QQuickPopup: ensure that the cursor is correct when overlapping items MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a popup is over an item that has a different cursor (such as a TextField), the cursor incorrectly took on that shape, because QQuickPopup didn’t have an explicitly set cursor. Task-number: QTBUG-58810 Change-Id: I4df6dd725cac027b2c30fe69ad81d9cd7e622c15 Reviewed-by: J-P Nurmi --- src/quicktemplates2/qquickpopupitem.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/quicktemplates2/qquickpopupitem.cpp') diff --git a/src/quicktemplates2/qquickpopupitem.cpp b/src/quicktemplates2/qquickpopupitem.cpp index 8596dafd..235152a2 100644 --- a/src/quicktemplates2/qquickpopupitem.cpp +++ b/src/quicktemplates2/qquickpopupitem.cpp @@ -105,6 +105,9 @@ QQuickPopupItem::QQuickPopupItem(QQuickPopup *popup) setVisible(false); setFlag(ItemIsFocusScope); setAcceptedMouseButtons(Qt::AllButtons); +#ifndef QT_NO_CURSOR + setCursor(Qt::ArrowCursor); +#endif #if QT_CONFIG(quicktemplates2_hover) // TODO: switch to QStyleHints::useHoverEffects in Qt 5.8 -- cgit v1.2.3