diff options
author | megabigbug <megabigbug@arrakis.(none)> | 2009-12-24 14:30:43 +0100 |
---|---|---|
committer | megabigbug <megabigbug@arrakis.(none)> | 2009-12-24 14:30:43 +0100 |
commit | 69587a901be8391a59fa0665129d95cee3967775 (patch) | |
tree | 5830ba4b7d44768e7da9d65335ef28111827a1c9 /src/webview.cpp | |
parent | hide tabbar in fulscreen mode (diff) | |
download | rekonq-69587a901be8391a59fa0665129d95cee3967775.tar.xz |
in fullscreen mode: show toolbar tabbar when mouse is on top of the screen
Diffstat (limited to 'src/webview.cpp')
-rw-r--r-- | src/webview.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/webview.cpp b/src/webview.cpp index 462adc08..a35b7143 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -313,6 +313,17 @@ void WebView::mousePressEvent(QMouseEvent *event) void WebView::mouseMoveEvent(QMouseEvent *event) { m_mousePos = event->pos(); + if (Application::instance()->mainWindow()->isFullScreen()) + { + if (event->pos().y()>=0 && event->pos().y()<=4) + { + Application::instance()->mainWindow()->setWidgetsVisible(true); + } + else + { + Application::instance()->mainWindow()->setWidgetsVisible(false); + } + } KWebView::mouseMoveEvent(event); } |