summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-11 02:14:26 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-13 02:50:36 +0100
commit04a0850cb6f7750859a10ea3fe3c7a48e94728dc (patch)
tree9cba4c0b947e1b6b155f57ea2a80b56e547f080c /src/webview.cpp
parentFinally remembered to fix urlbar (diff)
downloadrekonq-04a0850cb6f7750859a10ea3fe3c7a48e94728dc.tar.xz
Moving to kdewebkit.
First step
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 1dd5ad6a..4d3df502 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -53,7 +53,7 @@
WebView::WebView(QWidget* parent)
- : QWebView(parent)
+ : KWebView(parent, false)
, m_page(new WebPage(this))
, m_progress(0)
, m_mousePos(QPoint(0,0))
@@ -378,20 +378,6 @@ QPoint WebView::mousePos()
}
-void WebView::wheelEvent(QWheelEvent *event)
-{
- if (QApplication::keyboardModifiers() & Qt::ControlModifier)
- {
- int numDegrees = event->delta() / 8;
- int numSteps = numDegrees / 15;
- setTextSizeMultiplier(textSizeMultiplier() + numSteps * 0.1);
- event->accept();
- return;
- }
- QWebView::wheelEvent(event);
-}
-
-
void WebView::search()
{
KAction *a = qobject_cast<KAction*>(sender());