friend class QGraphicsScenePrivate;
friend class QWidget;
friend class QWidgetPrivate;
+ friend class QWidgetWindow;
friend class QETWidget;
friend class Q3AccelManager;
friend class QTranslator;
// which child should have it?
QWidget *widget = m_implicit_mouse_grabber ? m_implicit_mouse_grabber.data() : m_widget->childAt(event->pos());
- // TODO: make sure mouse release is delivered to same widget that got the press event
+ if (qApp->d_func()->inPopupMode()) {
+ widget = qApp->activePopupWidget();
+ m_implicit_mouse_grabber.clear();
+ }
if (!widget)
widget = m_widget;