diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-09-01 00:47:33 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-09-01 00:47:33 +0200 |
commit | 3b4d243c170ba45fdd1fc07cc24f3554c9e70857 (patch) | |
tree | 4782c2277ce76542787f522c97155f7941be9a82 /src/webview.cpp | |
parent | This works as wrokaround for KIO missing implementation in DELETE & CUSTOM (diff) | |
download | rekonq-3b4d243c170ba45fdd1fc07cc24f3554c9e70857.tar.xz |
Let urlbar being usable also in fullscreen mode
BUG: 243900
Diffstat (limited to 'src/webview.cpp')
-rw-r--r-- | src/webview.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/webview.cpp b/src/webview.cpp index 2c800036..b794007f 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -40,6 +40,7 @@ #include "searchengine.h" #include "websnap.h" #include "iconmanager.h" +#include "urlbar.h" // KDE Includes #include <KService> @@ -407,15 +408,17 @@ void WebView::mouseMoveEvent(QMouseEvent *event) return; } - if (Application::instance()->mainWindow()->isFullScreen()) + MainWindow *w = Application::instance()->mainWindow(); + if (w->isFullScreen()) { if (event->pos().y() >= 0 && event->pos().y() <= 4) { - Application::instance()->mainWindow()->setWidgetsVisible(true); + w->setWidgetsVisible(true); } else { - Application::instance()->mainWindow()->setWidgetsVisible(false); + if(!w->mainView()->urlBar()->hasFocus()) + w->setWidgetsVisible(false); } } KWebView::mouseMoveEvent(event); |