Skip to content

Commit

Permalink
Merge pull request #5 from kendersec/master
Browse files Browse the repository at this point in the history
Fix for fullscreen on Mac issue931
  • Loading branch information
icefox committed Jun 13, 2012
2 parents b14441d + 158b00c commit e310d63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/browsermainwindow.cpp
Expand Up @@ -1379,13 +1379,15 @@ void BrowserMainWindow::zoomOut()
void BrowserMainWindow::viewFullScreen(bool makeFullScreen)
{
if (makeFullScreen) {
setUnifiedTitleAndToolBarOnMac(false);
setWindowState(windowState() | Qt::WindowFullScreen);

menuBar()->hide();
statusBar()->hide();
} else {
setWindowState(windowState() & ~Qt::WindowFullScreen);

setUnifiedTitleAndToolBarOnMac(true);
menuBar()->setVisible(m_menuBarVisible);
statusBar()->setVisible(m_statusBarVisible);
}
Expand Down

0 comments on commit e310d63

Please sign in to comment.