summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp18
-rw-r--r--noncore/apps/opie-console/mainwindow.h2
-rw-r--r--noncore/apps/opie-console/opie-console.control2
3 files changed, 11 insertions, 11 deletions
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
@@ -8,8 +8,9 @@
#include <qpopupmenu.h>
#include <qtoolbar.h>
#include <qmessagebox.h>
#include <qpushbutton.h>
+#include <qwhatsthis.h>
#include <qpe/resource.h>
#include <opie/ofiledialog.h>
@@ -49,9 +50,9 @@ 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 );
assert( s );
@@ -464,22 +465,21 @@ void MainWindow::slotFullscreen() {
m_fullscreen->setText( tr("Full screen") );
} 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;
}
diff --git a/noncore/apps/opie-console/mainwindow.h b/noncore/apps/opie-console/mainwindow.h
index 91ca147..35338b7 100644
--- a/noncore/apps/opie-console/mainwindow.h
+++ b/noncore/apps/opie-console/mainwindow.h
@@ -22,9 +22,9 @@ class Profile;
class FunctionKeyboard;
class MainWindow : public QMainWindow {
Q_OBJECT
public:
- MainWindow();
+ MainWindow( QWidget *parent = 0, const char *name = 0, WFlags fl = 0 );
~MainWindow();
/**
* our factory to generate IOLayer and so on
diff --git a/noncore/apps/opie-console/opie-console.control b/noncore/apps/opie-console/opie-console.control
index aba2192..e307fef 100644
--- a/noncore/apps/opie-console/opie-console.control
+++ b/noncore/apps/opie-console/opie-console.control
@@ -3,8 +3,8 @@ Priority: optional
Section: opie/applications
Maintainer: Opie team <opie@handhelds.org>
Architecture: arm
Version: 0.6-$SUB_VERSION
-Depends: qpe-base ($QPE_VERSION), libopie ($QPE_VERSION)
+Depends: qpe-base ($QPE_VERSION), libopie ($QPE_VERSION), opie-console-help-en
License: GPL
Description: Opie terminal app