aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickpopupitem.cpp
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2017-02-14 11:47:24 +0100
committerMitch Curtis <mitch.curtis@qt.io>2017-02-20 08:58:33 +0000
commitbcbcb8d0d60b94fe9e739a9c95b4e78ac8184a0e (patch)
treebe3bfee2068998236a1a36633120dfe51fbee991 /src/quicktemplates2/qquickpopupitem.cpp
parent751ca5dfb7c3f0edd76110a5dc3a3696d3e0539c (diff)
QQuickPopup: ensure that the cursor is correct when overlapping items
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 <jpnurmi@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickpopupitem.cpp')
-rw-r--r--src/quicktemplates2/qquickpopupitem.cpp3
1 files changed, 3 insertions, 0 deletions
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