Permalink
Browse files

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
Paul Harrison committed May 6, 2013
1 parent 695eae2 commit 35079260e2b4b9f4c855522814abb36214639eae
Showing with 0 additions and 7 deletions.
  1. +0 −6 mythtv/libs/libmythui/mythuiwebbrowser.cpp
  2. +0 −1 mythtv/libs/libmythui/mythuiwebbrowser.h
@@ -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)
@@ -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:

0 comments on commit 3507926

Please sign in to comment.