summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-04 01:58:08 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-04 01:58:08 +0200
commit9c66930e763e55766fdede4014749bb2abd3db58 (patch)
tree9a663c765dd2e3f07454fa7f1387956eebf9cb7d /src/mainwindow.cpp
parentfixing new window action (diff)
downloadrekonq-9c66930e763e55766fdede4014749bb2abd3db58.tar.xz
Fixed FullScreen slot
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp20
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();
}