Closing of popups in QWidgetWindow.
This commit is contained in:
parent
4cc4cb3c51
commit
e6af684ee4
@ -389,6 +389,7 @@ private:
|
||||
friend class QGraphicsScenePrivate;
|
||||
friend class QWidget;
|
||||
friend class QWidgetPrivate;
|
||||
friend class QWidgetWindow;
|
||||
friend class QETWidget;
|
||||
friend class Q3AccelManager;
|
||||
friend class QTranslator;
|
||||
|
@ -112,7 +112,10 @@ void QWidgetWindow::handleMouseEvent(QMouseEvent *event)
|
||||
// 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;
|
||||
|
Loading…
Reference in New Issue
Block a user