}
ev->setAccepted(accepted);
-
- // ### QWebPage
-// if (!ev->isAccepted())
-// QWidget::wheelEvent(ev);
}
void QWebPagePrivate::keyPressEvent(QKeyEvent *ev)
{
if (ev->reason() != Qt::PopupFocusReason)
mainFrame->d->frame->page()->focusController()->setFocusedFrame(mainFrame->d->frame);
- // ### QWebPage
- //QWidget::focusInEvent(ev);
}
void QWebPagePrivate::focusOutEvent(QFocusEvent *ev)
{
- // ### QWebPage
- //QWidget::focusOutEvent(ev);
if (ev->reason() != Qt::PopupFocusReason) {
mainFrame->d->frame->selectionController()->clear();
mainFrame->d->frame->setIsActive(false);
void QWebView::wheelEvent(QWheelEvent* ev)
{
d->page->event(ev);
+
+ if (!ev->isAccepted())
+ return QWidget::wheelEvent(ev);
}
void QWebView::keyPressEvent(QKeyEvent* ev)
void QWebView::focusInEvent(QFocusEvent* ev)
{
d->page->event(ev);
+ QWidget::focusInEvent(ev);
}
void QWebView::focusOutEvent(QFocusEvent* ev)
{
+ QWidget::focusOutEvent(ev);
d->page->event(ev);
}
+2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
+
+ Reviewed by Simon.
+
+ * Remove the todo from QWebPage and move the code to QWebView.
+
+
+ * Api/qwebpage.cpp:
+ (QWebPagePrivate::wheelEvent):
+ (QWebPagePrivate::focusInEvent):
+ * Api/qwebview.cpp:
+ (QWebView::wheelEvent):
+ (QWebView::focusInEvent):
+
2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
Reviewed by Simon.