-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index 55e9836..27407d9 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp @@ -2,4 +2,2 @@ - - #include <qaction.h> @@ -14,4 +12,4 @@ #include <qpe/resource.h> -#include <opie/ofiledialog.h> +#include <opie/ofiledialog.h> @@ -488,5 +486,8 @@ void MainWindow::slotFullscreen() { + + if ( m_isFullscreen ) { - ( m_curSession->widgetStack() )->reparent( m_consoleWindow, 0, QPoint(0,0), false ); + ( m_curSession->widgetStack() )->reparent( savedParentFullscreen, 0, QPoint(0,0), false ); ( m_curSession->widgetStack() )->setFrameStyle( QFrame::Panel | QFrame::Sunken ); + setCentralWidget( m_consoleWindow ); @@ -497,2 +498,3 @@ void MainWindow::slotFullscreen() { } else { + savedParentFullscreen = ( m_curSession->widgetStack() )->parentWidget(); ( m_curSession->widgetStack() )->setFrameStyle( QFrame::NoFrame ); |