-rw-r--r-- | noncore/games/qasteroids/toplevel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/games/qasteroids/toplevel.cpp b/noncore/games/qasteroids/toplevel.cpp index 090099f..71daf60 100644 --- a/noncore/games/qasteroids/toplevel.cpp +++ b/noncore/games/qasteroids/toplevel.cpp | |||
@@ -63,50 +63,50 @@ SLevel levels[MAX_LEVELS] = | |||
63 | { 4, 0.6 }, | 63 | { 4, 0.6 }, |
64 | { 4, 0.7 }, | 64 | { 4, 0.7 }, |
65 | { 4, 0.8 }, | 65 | { 4, 0.8 }, |
66 | { 5, 0.7 }, | 66 | { 5, 0.7 }, |
67 | { 5, 0.8 }, | 67 | { 5, 0.8 }, |
68 | { 5, 0.9 }, | 68 | { 5, 0.9 }, |
69 | { 5, 1.0 } | 69 | { 5, 1.0 } |
70 | }; | 70 | }; |
71 | 71 | ||
72 | const char *soundEvents[] = | 72 | const char *soundEvents[] = |
73 | { | 73 | { |
74 | "ShipDestroyed", | 74 | "ShipDestroyed", |
75 | "RockDestroyed", | 75 | "RockDestroyed", |
76 | 0 | 76 | 0 |
77 | }; | 77 | }; |
78 | 78 | ||
79 | const char *soundDefaults[] = | 79 | const char *soundDefaults[] = |
80 | { | 80 | { |
81 | "Explosion.wav", | 81 | "Explosion.wav", |
82 | "ploop.wav", | 82 | "ploop.wav", |
83 | 0 | 83 | 0 |
84 | }; | 84 | }; |
85 | 85 | ||
86 | 86 | ||
87 | KAstTopLevel::KAstTopLevel( QWidget *parent, const char *name ) | 87 | KAstTopLevel::KAstTopLevel( QWidget *parent, const char *_name ) |
88 | : QMainWindow( parent, name ) | 88 | : QMainWindow( parent, _name ) |
89 | { | 89 | { |
90 | setCaption( tr("Asteroids") ); | 90 | setCaption( tr("Asteroids") ); |
91 | QWidget *border = new QWidget( this ); | 91 | QWidget *border = new QWidget( this ); |
92 | border->setBackgroundColor( black ); | 92 | border->setBackgroundColor( black ); |
93 | setCentralWidget( border ); | 93 | setCentralWidget( border ); |
94 | 94 | ||
95 | QVBoxLayout *borderLayout = new QVBoxLayout( border ); | 95 | QVBoxLayout *borderLayout = new QVBoxLayout( border ); |
96 | 96 | ||
97 | QWidget *mainWin = new QWidget( border ); | 97 | QWidget *mainWin = new QWidget( border ); |
98 | borderLayout->addWidget( mainWin, 2, AlignHCenter ); | 98 | borderLayout->addWidget( mainWin, 2, AlignHCenter ); |
99 | 99 | ||
100 | view = new KAsteroidsView( mainWin ); | 100 | view = new KAsteroidsView( mainWin ); |
101 | connect( view, SIGNAL( shipKilled() ), SLOT( slotShipKilled() ) ); | 101 | connect( view, SIGNAL( shipKilled() ), SLOT( slotShipKilled() ) ); |
102 | connect( view, SIGNAL( rockHit(int) ), SLOT( slotRockHit(int) ) ); | 102 | connect( view, SIGNAL( rockHit(int) ), SLOT( slotRockHit(int) ) ); |
103 | connect( view, SIGNAL( rocksRemoved() ), SLOT( slotRocksRemoved() ) ); | 103 | connect( view, SIGNAL( rocksRemoved() ), SLOT( slotRocksRemoved() ) ); |
104 | connect( view, SIGNAL( updateVitals() ), SLOT( slotUpdateVitals() ) ); | 104 | connect( view, SIGNAL( updateVitals() ), SLOT( slotUpdateVitals() ) ); |
105 | 105 | ||
106 | QVBoxLayout *vb = new QVBoxLayout( mainWin ); | 106 | QVBoxLayout *vb = new QVBoxLayout( mainWin ); |
107 | QHBoxLayout *hb = new QHBoxLayout; | 107 | QHBoxLayout *hb = new QHBoxLayout; |
108 | QHBoxLayout *hbd = new QHBoxLayout; | 108 | QHBoxLayout *hbd = new QHBoxLayout; |
109 | vb->addLayout( hb ); | 109 | vb->addLayout( hb ); |
110 | 110 | ||
111 | QFont labelFont( "helvetica", 12 ); | 111 | QFont labelFont( "helvetica", 12 ); |
112 | QColorGroup grp( darkGreen, black, QColor( 128, 128, 128 ), | 112 | QColorGroup grp( darkGreen, black, QColor( 128, 128, 128 ), |