author | cniehaus <cniehaus> | 2003-03-15 20:50:41 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2003-03-15 20:50:41 (UTC) |
commit | 917fb7d2dca76f5c2c5c86553be0fcc2832c3435 (patch) (unidiff) | |
tree | 972e7e2e17496cb4ab618f4a07035d2c2b6f20c8 /noncore/games/tetrix/qtetrix.cpp | |
parent | dfe0e1302aa2a366cfa2a8b53102a38b7143ba4b (diff) | |
download | opie-917fb7d2dca76f5c2c5c86553be0fcc2832c3435.zip opie-917fb7d2dca76f5c2c5c86553be0fcc2832c3435.tar.gz opie-917fb7d2dca76f5c2c5c86553be0fcc2832c3435.tar.bz2 |
merging with the branch.
Comments?
Diffstat (limited to 'noncore/games/tetrix/qtetrix.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/tetrix/qtetrix.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/noncore/games/tetrix/qtetrix.cpp b/noncore/games/tetrix/qtetrix.cpp index f649894..6d29c3f 100644 --- a/noncore/games/tetrix/qtetrix.cpp +++ b/noncore/games/tetrix/qtetrix.cpp | |||
@@ -23,4 +23,5 @@ | |||
23 | 23 | ||
24 | #include <qpe/resource.h> | 24 | #include <qpe/resource.h> |
25 | #include <qpe/config.h> | ||
25 | 26 | ||
26 | #include <qapplication.h> | 27 | #include <qapplication.h> |
@@ -28,5 +29,7 @@ | |||
28 | #include <qdatetime.h> | 29 | #include <qdatetime.h> |
29 | #include <qlayout.h> | 30 | #include <qlayout.h> |
31 | #include <qstring.h> | ||
30 | 32 | ||
33 | #include "ohighscoredlg.h" | ||
31 | 34 | ||
32 | 35 | ||
@@ -162,7 +165,11 @@ QTetrix::QTetrix( QWidget *parent, const char *name, WFlags f ) | |||
162 | void QTetrix::gameOver() | 165 | void QTetrix::gameOver() |
163 | { | 166 | { |
167 | OHighscore *hs = new OHighscore( showScore->text().toInt() , showLevel->text().toInt() ); | ||
168 | if ( hs->isNewhighscore ) | ||
169 | hs->insertData( hs->getName(), showScore->text().toInt() , showLevel->text().toInt() ); | ||
170 | OHighscoreDialog hscdlg( hs, this, "OHighscoreDialog", true ); | ||
171 | hscdlg.exec(); | ||
164 | } | 172 | } |
165 | 173 | ||
166 | |||
167 | void QTetrix::quit() | 174 | void QTetrix::quit() |
168 | { | 175 | { |