summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qapplication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/kernel/qapplication.cpp')
-rw-r--r--src/widgets/kernel/qapplication.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp
index 997a663c27f..6634a2eb69d 100644
--- a/src/widgets/kernel/qapplication.cpp
+++ b/src/widgets/kernel/qapplication.cpp
@@ -4503,6 +4503,15 @@ void QApplicationPrivate::notifyThemeChanged()
initSystemPalette();
}
+#ifndef QT_NO_DRAGANDDROP
+void QApplicationPrivate::notifyDragStarted(const QDrag *drag)
+{
+ // Prevent pickMouseReceiver() from using the widget where the drag was started after a drag operation.
+ QGuiApplicationPrivate::notifyDragStarted(drag);
+ qt_button_down = 0;
+}
+#endif // QT_NO_DRAGANDDROP
+
#ifndef QT_NO_GESTURES
QGestureManager* QGestureManager::instance()
{