summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-09-01 00:47:33 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-09-01 00:47:33 +0200
commit3b4d243c170ba45fdd1fc07cc24f3554c9e70857 (patch)
tree4782c2277ce76542787f522c97155f7941be9a82 /src/webview.cpp
parentThis works as wrokaround for KIO missing implementation in DELETE & CUSTOM (diff)
downloadrekonq-3b4d243c170ba45fdd1fc07cc24f3554c9e70857.tar.xz
Let urlbar being usable also in fullscreen mode
BUG: 243900
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp9
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);