Widgets: Set qt_button_down for each press.
Do not rely on release events. Task-number: QTBUG-31333 Change-Id: I09a056fed8892715c04ca78a42ae191e5a9a3b42 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
This commit is contained in:
parent
91ca90d896
commit
a4f7bb8733
@ -446,7 +446,7 @@ void QWidgetWindow::handleMouseEvent(QMouseEvent *event)
|
||||
if (!widget)
|
||||
widget = m_widget;
|
||||
|
||||
if (event->type() == QEvent::MouseButtonPress && !qt_button_down)
|
||||
if (event->type() == QEvent::MouseButtonPress)
|
||||
qt_button_down = widget;
|
||||
|
||||
QWidget *receiver = QApplicationPrivate::pickMouseReceiver(m_widget, event->windowPos().toPoint(), &mapped, event->type(), event->buttons(),
|
||||
|
Loading…
Reference in New Issue
Block a user