Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MythWebView: remove the WheelEvent handler
This restores the default behaviour were if the mouse cursor is over the
WebView the mouse wheel will scroll the web page or frame. It will still
move the focus to the next/previous widget but only if the cursor is not
over the web page.
  • Loading branch information
Paul Harrison committed May 6, 2013
1 parent 695eae2 commit 3507926
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions mythtv/libs/libmythui/mythuiwebbrowser.cpp
Expand Up @@ -451,12 +451,6 @@ void MythWebView::keyPressEvent(QKeyEvent *event)
}
}

void MythWebView::wheelEvent(QWheelEvent *event)
{
event->accept();
QCoreApplication::postEvent(GetMythMainWindow(), new QWheelEvent(*event));
}

void MythWebView::handleUnsupportedContent(QNetworkReply *reply)
{
if (reply->error() == QNetworkReply::NoError)
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythui/mythuiwebbrowser.h
Expand Up @@ -110,7 +110,6 @@ class MythWebView : public QWebView
~MythWebView(void);

virtual void keyPressEvent(QKeyEvent *event);
virtual void wheelEvent(QWheelEvent *event);
virtual void customEvent(QEvent *e);

protected slots:
Expand Down

0 comments on commit 3507926

Please sign in to comment.