summaryrefslogtreecommitdiff
path: root/noncore/games/qasteroids/toplevel.cpp
authorzecke <zecke>2004-02-06 12:14:56 (UTC)
committer zecke <zecke>2004-02-06 12:14:56 (UTC)
commit0c74629e8f5c12a9b5a282b817f884fa10dee491 (patch) (side-by-side diff)
tree3294663b92023f8d24d68a01022e011a3c94002d /noncore/games/qasteroids/toplevel.cpp
parent46ce5afcfbe7be19f4d5ac0fed6886a0759f1a25 (diff)
downloadopie-0c74629e8f5c12a9b5a282b817f884fa10dee491.zip
opie-0c74629e8f5c12a9b5a282b817f884fa10dee491.tar.gz
opie-0c74629e8f5c12a9b5a282b817f884fa10dee491.tar.bz2
Merge from the 1.0.x release
Diffstat (limited to 'noncore/games/qasteroids/toplevel.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/qasteroids/toplevel.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/noncore/games/qasteroids/toplevel.cpp b/noncore/games/qasteroids/toplevel.cpp
index 71daf60..c4fea89 100644
--- a/noncore/games/qasteroids/toplevel.cpp
+++ b/noncore/games/qasteroids/toplevel.cpp
@@ -71,3 +71,3 @@ SLevel levels[MAX_LEVELS] =
-const char *soundEvents[] =
+const char *soundEvents[] =
{
@@ -78,3 +78,3 @@ const char *soundEvents[] =
-const char *soundDefaults[] =
+const char *soundDefaults[] =
{
@@ -85,7 +85,10 @@ const char *soundDefaults[] =
-
-KAstTopLevel::KAstTopLevel( QWidget *parent, const char *_name )
- : QMainWindow( parent, _name )
+
+KAstTopLevel::KAstTopLevel( QWidget *parent, const char *_name, WFlags fl )
+ : QMainWindow( parent, _name, fl )
{
setCaption( tr("Asteroids") );
+
+ QPEApplication::grabKeyboard();
+
QWidget *border = new QWidget( this );
@@ -95,3 +98,3 @@ KAstTopLevel::KAstTopLevel( QWidget *parent, const char *_name )
QVBoxLayout *borderLayout = new QVBoxLayout( border );
-
+
QWidget *mainWin = new QWidget( border );
@@ -259,3 +262,3 @@ KAstTopLevel::KAstTopLevel( QWidget *parent, const char *_name )
- struct utsname name; /* check for embedix kernel running on the zaurus, if
+ struct utsname name; /* check for embedix kernel running on the zaurus, if
lineo change string, this break
@@ -397,3 +400,3 @@ void KAstTopLevel::keyReleaseEvent( QKeyEvent *event )
break;
-
+
case NewGame: