diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-12-26 11:46:48 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-12-26 11:46:48 +0100 |
commit | 4c622b5499ce04318fbfbdf8c2f17ed99b10c2f0 (patch) | |
tree | 27f2c0c59d5c467b6e37f54e26c6c9ca96aacbdf /src/mainwindow.cpp | |
parent | auto load plug in (diff) | |
parent | in fullscreen mode: show toolbar tabbar when mouse is on top of the screen (diff) | |
download | rekonq-4c622b5499ce04318fbfbdf8c2f17ed99b10c2f0.tar.xz |
Merge commit 'refs/merge-requests/81' of git://gitorious.org/rekonq/mainline into m81
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b4174191..3b0f6b54 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -797,21 +797,30 @@ 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; + static bool bookmarksPanelFlag; - if (makeFullScreen == true) + if (!makeVisible) { // save current state bookmarksToolBarFlag = m_bmBar->isHidden(); m_bmBar->hide(); + m_view->setTabBarHidden(true); + sidePanelFlag = sidePanel()->isHidden(); sidePanel()->hide(); - bookmarksPanelFlag = bookmarksPanel()->isHidden(); + bookmarksPanelFlag = bookmarksPanel()->isHidden(); bookmarksPanel()->hide(); // hide main toolbar @@ -821,6 +830,7 @@ void MainWindow::viewFullScreen(bool makeFullScreen) { // show main toolbar m_mainBar->show(); + m_view->setTabBarHidden(false); // restore previous state if (!bookmarksToolBarFlag) @@ -829,9 +839,7 @@ void MainWindow::viewFullScreen(bool makeFullScreen) sidePanel()->show(); if (!bookmarksPanelFlag) bookmarksPanel()->show(); - } - - KToggleFullScreenAction::setFullScreen(this, makeFullScreen); + } } |