summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp12
1 files changed, 7 insertions, 5 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
@@ -1,6 +1,4 @@
#include <assert.h>
-
-
#include <qaction.h>
#include <qmenubar.h>
@@ -13,6 +11,6 @@
#include <qpe/resource.h>
-#include <opie/ofiledialog.h>
+#include <opie/ofiledialog.h>
#include "keytrans.h"
@@ -487,7 +485,10 @@ void MainWindow::slotSessionChanged( Session* ses ) {
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 );
( m_curSession->widgetStack() )->show();
@@ -496,6 +497,7 @@ void MainWindow::slotFullscreen() {
} else {
+ savedParentFullscreen = ( m_curSession->widgetStack() )->parentWidget();
( m_curSession->widgetStack() )->setFrameStyle( QFrame::NoFrame );
- ( m_curSession->widgetStack() )->reparent( 0,WStyle_Tool | WStyle_Customize | WStyle_StaysOnTop
+ ( m_curSession->widgetStack() )->reparent( 0, WStyle_Tool | WStyle_Customize | WStyle_StaysOnTop
, QPoint(0,0), false );
( m_curSession->widgetStack() )->resize( qApp->desktop()->width(), qApp->desktop()->height() );