mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 560950 - Second press event on doubleclick is not dispatched on Qt. r=dougt
This commit is contained in:
parent
e3c85bbb77
commit
76f698c378
@ -118,7 +118,9 @@ void MozQWidget::keyReleaseEvent(QKeyEvent* aEvent)
|
||||
|
||||
void MozQWidget::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* aEvent)
|
||||
{
|
||||
mReceiver->mouseDoubleClickEvent(aEvent);
|
||||
// Qt sends double click event, but not second press event.
|
||||
mReceiver->OnButtonPressEvent(aEvent);
|
||||
mReceiver->OnMouseDoubleClickEvent(aEvent);
|
||||
}
|
||||
|
||||
void MozQWidget::mouseMoveEvent(QGraphicsSceneMouseEvent* aEvent)
|
||||
|
@ -1328,7 +1328,7 @@ nsWindow::OnButtonReleaseEvent(QGraphicsSceneMouseEvent *aEvent)
|
||||
}
|
||||
|
||||
nsEventStatus
|
||||
nsWindow::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *aEvent)
|
||||
nsWindow::OnMouseDoubleClickEvent(QGraphicsSceneMouseEvent *aEvent)
|
||||
{
|
||||
PRUint32 eventType;
|
||||
|
||||
|
@ -256,7 +256,7 @@ protected:
|
||||
virtual nsEventStatus OnMotionNotifyEvent(QGraphicsSceneMouseEvent *);
|
||||
virtual nsEventStatus OnButtonPressEvent(QGraphicsSceneMouseEvent *);
|
||||
virtual nsEventStatus OnButtonReleaseEvent(QGraphicsSceneMouseEvent *);
|
||||
virtual nsEventStatus mouseDoubleClickEvent(QGraphicsSceneMouseEvent *);
|
||||
virtual nsEventStatus OnMouseDoubleClickEvent(QGraphicsSceneMouseEvent *);
|
||||
virtual nsEventStatus OnFocusInEvent(QEvent *);
|
||||
virtual nsEventStatus OnFocusOutEvent(QEvent *);
|
||||
virtual nsEventStatus OnKeyPressEvent(QKeyEvent *);
|
||||
|
Loading…
Reference in New Issue
Block a user