summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-10-18 11:56:52 (UTC)
committer harlekin <harlekin>2002-10-18 11:56:52 (UTC)
commitd810fe01a5b7356c65c034bfc808688c399dfd81 (patch) (side-by-side diff)
tree7ad05dbf5dd830752f702ae29ab79ca3d1248669
parent24c0ae04669e94d554fe8ef49888ffb5a6a00656 (diff)
downloadopie-d810fe01a5b7356c65c034bfc808688c399dfd81.zip
opie-d810fe01a5b7356c65c034bfc808688c399dfd81.tar.gz
opie-d810fe01a5b7356c65c034bfc808688c399dfd81.tar.bz2
back from fullscreen now right reparented
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,8 +1,6 @@
#include <assert.h>
-
-
#include <qaction.h>
#include <qmenubar.h>
#include <qlabel.h>
#include <qpopupmenu.h>
@@ -11,10 +9,10 @@
#include <qpushbutton.h>
#include <qwhatsthis.h>
#include <qpe/resource.h>
-#include <opie/ofiledialog.h>
+#include <opie/ofiledialog.h>
#include "keytrans.h"
#include "profileeditordialog.h"
#include "configdialog.h"
@@ -485,19 +483,23 @@ 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();
( m_curSession->emulationHandler() )->cornerButton()->hide();
disconnect( ( m_curSession->emulationHandler() )->cornerButton(), SIGNAL( pressed() ), this, SLOT( 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() );
( m_curSession->widgetStack() )->setFocus();
( m_curSession->widgetStack() )->show();