diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-04 01:58:08 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-04 01:58:08 +0200 |
commit | 9c66930e763e55766fdede4014749bb2abd3db58 (patch) | |
tree | 9a663c765dd2e3f07454fa7f1387956eebf9cb7d /src/mainwindow.cpp | |
parent | fixing new window action (diff) | |
download | rekonq-9c66930e763e55766fdede4014749bb2abd3db58.tar.xz |
Fixed FullScreen slot
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index f55fa0a3..80de0362 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -685,27 +685,29 @@ void MainWindow::slotViewTextSmaller() void MainWindow::slotViewFullScreen(bool makeFullScreen) { // state flags - static bool mainToolBarFlag; static bool bookmarksToolBarFlag; static bool sidePanelFlag; if (makeFullScreen == true) { // save current state - mainToolBarFlag = toolBar("mainToolBar")->isHidden(); - bookmarksToolBarFlag = toolBar("bookmarksToolBar")->isHidden(); + bookmarksToolBarFlag = m_bmBar->isHidden(); + m_bmBar->hide(); + sidePanelFlag = sidePanel()->isHidden(); - - toolBar("mainToolBar")->hide(); - toolBar("bookmarksToolBar")->hide(); sidePanel()->hide(); + + // hide main toolbar + m_mainBar->hide(); } else { - if (!mainToolBarFlag) - toolBar("mainToolBar")->show(); + // show main toolbar + m_mainBar->show(); + + // restore previous state if (!bookmarksToolBarFlag) - toolBar("bookmarksToolBar")->show(); + m_bmBar->show(); if (!sidePanelFlag) sidePanel()->show(); } |