Diffstat (limited to 'noncore/games/qasteroids/toplevel.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/qasteroids/toplevel.cpp | 19 |
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 @@ -70,5 +70,5 @@ SLevel levels[MAX_LEVELS] = }; -const char *soundEvents[] = +const char *soundEvents[] = { "ShipDestroyed", @@ -77,5 +77,5 @@ const char *soundEvents[] = }; -const char *soundDefaults[] = +const char *soundDefaults[] = { "Explosion.wav", @@ -84,9 +84,12 @@ 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 ); border->setBackgroundColor( black ); @@ -94,5 +97,5 @@ KAstTopLevel::KAstTopLevel( QWidget *parent, const char *_name ) QVBoxLayout *borderLayout = new QVBoxLayout( border ); - + QWidget *mainWin = new QWidget( border ); borderLayout->addWidget( mainWin, 2, AlignHCenter ); @@ -258,5 +261,5 @@ 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 */ @@ -396,5 +399,5 @@ void KAstTopLevel::keyReleaseEvent( QKeyEvent *event ) } break; - + case NewGame: slotNewGame(); |