|
Lines 633-656
bool QWebView::event(QEvent *e)
a/WebKit/qt/Api/qwebview.cpp_sec1
|
| 633 |
d->page->updatePositionDependentActions(event->pos()); |
633 |
d->page->updatePositionDependentActions(event->pos()); |
| 634 |
} else |
634 |
} else |
| 635 |
#endif // QT_NO_CONTEXTMENU |
635 |
#endif // QT_NO_CONTEXTMENU |
| 636 |
if (e->type() == QEvent::ShortcutOverride) { |
636 |
if (e->type() == QEvent::ShortcutOverride) |
| 637 |
d->page->event(e); |
637 |
d->page->event(e); |
| 638 |
#ifndef QT_NO_CURSOR |
638 |
else if (e->type() == QEvent::Leave) |
| 639 |
#if QT_VERSION >= 0x040400 |
|
|
| 640 |
} else if (e->type() == QEvent::CursorChange) { |
| 641 |
// An unsetCursor will set the cursor to Qt::ArrowCursor. |
| 642 |
// Thus this cursor change might be a QWidget::unsetCursor() |
| 643 |
// If this is not the case and it came from WebCore, the |
| 644 |
// QWebPageClient already has set its cursor internally |
| 645 |
// to Qt::ArrowCursor, so updating the cursor is always |
| 646 |
// right, as it falls back to the last cursor set by |
| 647 |
// WebCore. |
| 648 |
// FIXME: Add a QEvent::CursorUnset or similar to Qt. |
| 649 |
if (cursor().shape() == Qt::ArrowCursor) |
| 650 |
d->page->d->client->resetCursor(); |
| 651 |
#endif |
| 652 |
#endif |
| 653 |
} else if (e->type() == QEvent::Leave) |
| 654 |
d->page->event(e); |
639 |
d->page->event(e); |
| 655 |
} |
640 |
} |
| 656 |
|
641 |
|