[Webkit-unassigned] [Bug 29389] [Qt] isAccepted() from mouse event handling has a strange behavior on buttons of google.com

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 12 12:22:41 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=29389





--- Comment #9 from Rafael Brandao <rafael.lobo at openbossa.org>  2011-04-12 12:22:41 PST ---
QGraphicsWebView and QWebView ignores the flag set by QWebPage as you can see above:

void QGraphicsWebView::mousePressEvent(QGraphicsSceneMouseEvent* ev)
{
    if (d->page) {
        const bool accepted = ev->isAccepted(); // Stores the original value.
        d->page->event(ev); // Handle the event with QWebPage.
        ev->setAccepted(accepted); // Restores the original accepted value.
    }

    if (!ev->isAccepted())
        QGraphicsItem::mousePressEvent(ev);
}


void QWebView::mousePressEvent(QMouseEvent* ev)
{
    if (d->page) {
        const bool accepted = ev->isAccepted();
        d->page->event(ev);
        ev->setAccepted(accepted);
    }
}

QWebView in particular never propagates the event, so I can't see how this bug could affect anything at all.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list