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/mainwindow.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/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index de755c76..3b0f6b54 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -797,12 +797,19 @@ void MainWindow::viewTextSmaller() void MainWindow::viewFullScreen(bool makeFullScreen) { + setWidgetsVisible(!makeFullScreen); + KToggleFullScreenAction::setFullScreen(this, makeFullScreen); +} + + +void MainWindow::setWidgetsVisible(bool makeVisible) +{ // state flags static bool bookmarksToolBarFlag; static bool sidePanelFlag; static bool bookmarksPanelFlag; - if (makeFullScreen == true) + if (!makeVisible) { // save current state bookmarksToolBarFlag = m_bmBar->isHidden(); @@ -832,9 +839,7 @@ void MainWindow::viewFullScreen(bool makeFullScreen) sidePanel()->show(); if (!bookmarksPanelFlag) bookmarksPanel()->show(); - } - - KToggleFullScreenAction::setFullScreen(this, makeFullScreen); + } } |