-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 | |||
@@ -55,66 +55,66 @@ SLevel levels[MAX_LEVELS] = | |||
55 | { 1, 0.4 }, | 55 | { 1, 0.4 }, |
56 | { 1, 0.6 }, | 56 | { 1, 0.6 }, |
57 | { 2, 0.5 }, | 57 | { 2, 0.5 }, |
58 | { 2, 0.7 }, | 58 | { 2, 0.7 }, |
59 | { 2, 0.8 }, | 59 | { 2, 0.8 }, |
60 | { 3, 0.6 }, | 60 | { 3, 0.6 }, |
61 | { 3, 0.7 }, | 61 | { 3, 0.7 }, |
62 | { 3, 0.8 }, | 62 | { 3, 0.8 }, |
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 ), |
113 | QColor( 64, 64, 64 ), black, darkGreen, black ); | 113 | QColor( 64, 64, 64 ), black, darkGreen, black ); |
114 | QPalette pal( grp, grp, grp ); | 114 | QPalette pal( grp, grp, grp ); |
115 | 115 | ||
116 | mainWin->setPalette( pal ); | 116 | mainWin->setPalette( pal ); |
117 | 117 | ||
118 | QLabel *label; | 118 | QLabel *label; |
119 | label = new QLabel( tr("Score"), mainWin ); | 119 | label = new QLabel( tr("Score"), mainWin ); |
120 | label->setFont( labelFont ); | 120 | label->setFont( labelFont ); |