Bug 560950 - Second press event on doubleclick is not dispatched on Qt. r=dougt
This commit is contained in:
Родитель
9ea77dbdd1
Коммит
6ea5bcdf86
|
@ -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 *);
|
||||
|
|
Загрузка…
Ссылка в новой задаче