diff options
-rw-r--r-- | src/widgets/kernel/qwindowcontainer.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/widgets/kernel/qwindowcontainer.cpp b/src/widgets/kernel/qwindowcontainer.cpp index 1770e60c2e..fa906a5aa2 100644 --- a/src/widgets/kernel/qwindowcontainer.cpp +++ b/src/widgets/kernel/qwindowcontainer.cpp @@ -295,6 +295,17 @@ bool QWindowContainer::event(QEvent *e) } } break; + case QEvent::Drop: + case QEvent::DragMove: + case QEvent::DragLeave: + QCoreApplication::sendEvent(d->window, e); + return e->isAccepted(); + case QEvent::DragEnter: + // Don't reject drag events for the entire widget when one + // item rejects the drag enter + QCoreApplication::sendEvent(d->window, e); + e->accept(); + return true; default: break; } |