summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 25de0a98..0ba04bc2 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -279,11 +279,9 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
menu.exec(mapToGlobal(event->pos()));
}
+
void WebView::mousePressEvent(QMouseEvent *event)
{
- m_page->m_pressedButtons = event->buttons();
- m_page->m_keyboardModifiers = event->modifiers();
-
switch(event->button())
{
case Qt::XButton1:
@@ -293,7 +291,8 @@ void WebView::mousePressEvent(QMouseEvent *event)
triggerPageAction(KWebPage::Forward);
break;
default:
- QWebView::mousePressEvent(event);
+ KWebView::mousePressEvent(event);
+ break;
};
}
@@ -301,7 +300,7 @@ void WebView::mousePressEvent(QMouseEvent *event)
void WebView::mouseMoveEvent(QMouseEvent *event)
{
m_mousePos = event->pos();
- QWebView::mouseMoveEvent(event);
+ KWebView::mouseMoveEvent(event);
}
@@ -371,6 +370,6 @@ void WebView::keyPressEvent(QKeyEvent *event)
triggerPageAction(KWebPage::SelectAll);
return;
}
-
- QWebView::keyPressEvent(event);
+
+ KWebView::keyPressEvent(event);
}