From 948a3738421c579441a83dff4472ed5f99e3abb1 Mon Sep 17 00:00:00 2001 From: harlekin Date: Wed, 16 Oct 2002 20:18:23 +0000 Subject: docu added --- (limited to 'noncore/apps/opie-console/mainwindow.cpp') diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index 9ccefa0..5295600 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -50,7 +51,7 @@ static char * menu_xpm[] = { " "}; -MainWindow::MainWindow() { +MainWindow::MainWindow(QWidget *parent, const char *name, WFlags) : QMainWindow(parent, name, WStyle_ContextHelp) { KeyTrans::loadAll(); for (int i = 0; i < KeyTrans::count(); i++ ) { KeyTrans* s = KeyTrans::find(i ); @@ -465,20 +466,19 @@ void MainWindow::slotFullscreen() { } else { ( m_curSession->widgetStack() )->setFrameStyle( QFrame::NoFrame ); - ( m_curSession->widgetStack() )->reparent( 0,WStyle_Tool | WStyle_Customize | WStyle_StaysOnTop, - QPoint(0,0), false); + ( 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(); - //QPushButton *cornerButton = new QPushButton( ); - //cornerButton->setPixmap( QPixmap( (const char**)menu_xpm ) ); - //connect( cornerButton, SIGNAL( pressed() ), this, SLOT( slotFullscreen() ) ); - // need teh scrollbar - // ( m_curSession->widgetStack() )->setCornerWidget( cornerButton ); + QPushButton *cornerButton = new QPushButton( m_curSession->widgetStack() ); + cornerButton->setPixmap( QPixmap( (const char**)menu_xpm ) ); + connect( cornerButton, SIGNAL( pressed() ), this, SLOT( slotFullscreen() ) ); + // would need a scrollview + // ( m_curSession->widgetStack() )->setCornerWidget( cornerButton ); m_fullscreen->setText( tr("Stop full screen") ); } - m_isFullscreen = !m_isFullscreen; } -- cgit v0.9.0.2