better context menu handling
svn path=/trunk/KDE/kdelibs/; revision=919698
This commit is contained in:
parent
50e22d6d09
commit
9bd8fe0219
@ -232,9 +232,16 @@ void WebView::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
||||
|
||||
QContextMenuEvent ce(static_cast<QContextMenuEvent::Reason>(event->reason()),
|
||||
event->pos().toPoint(), event->screenPos());
|
||||
d->page->event(&ce);
|
||||
if (ce.isAccepted()) {
|
||||
|
||||
if (d->page->swallowContextMenuEvent(&ce)) {
|
||||
event->accept();
|
||||
} else {
|
||||
d->page->updatePositionDependentActions(event->pos().toPoint());
|
||||
|
||||
d->page->event(&ce);
|
||||
if (ce.isAccepted()) {
|
||||
event->accept();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user