summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-23 12:12:51 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-23 12:12:51 +0200
commit8ddcc01712b0971c6a5714fa59ff3c7c6ad4c51f (patch)
treef8b1ba6d6c02c7691fc9980536d9f52daa2a5bdd /src/webview.cpp
parentFixing merge.. (diff)
downloadrekonq-8ddcc01712b0971c6a5714fa59ff3c7c6ad4c51f.tar.xz
What's overkilling?
checking EVERYTIME mouse move events to just fix some stupid cases? revert a good implementation just to bug fixing the 0.1% of the cases? Don't know! This implementation seems working to fix the flickering links But, these are really the UI problems I'd like to get rid...
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index e65aea9e..8380d064 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -451,6 +451,16 @@ void WebView::mousePressEvent(QMouseEvent *event)
void WebView::mouseMoveEvent(QMouseEvent *event)
{
+ QPoint p = event->pos();
+ QSize s = size();
+ int x = s.width() / 2;
+ int y = s.height() - 30; // quite reasonable value, without performing requests, cause of speed
+
+ if(p.x() <= x && p.y() >= y )
+ Application::instance()->mainWindow()->setFlickeringZone(true);
+ else
+ Application::instance()->mainWindow()->setFlickeringZone(false);
+
if( url().protocol() != "rekonq" )
{
QWebView::mouseMoveEvent(event);