Diffstat (limited to 'noncore/games/tetrix/ohighscoredlg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/tetrix/ohighscoredlg.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/games/tetrix/ohighscoredlg.cpp b/noncore/games/tetrix/ohighscoredlg.cpp index cf0dcf7..7581f51 100644 --- a/noncore/games/tetrix/ohighscoredlg.cpp +++ b/noncore/games/tetrix/ohighscoredlg.cpp | |||
@@ -8,24 +8,25 @@ | |||
8 | * * | 8 | * * |
9 | * This program is free software; you can redistribute it and/or modify * | 9 | * This program is free software; you can redistribute it and/or modify * |
10 | * it under the terms of the GNU General Public License as published by * | 10 | * it under the terms of the GNU General Public License as published by * |
11 | * the Free Software Foundation; either version 2 of the License, or * | 11 | * the Free Software Foundation; either version 2 of the License, or * |
12 | * ( at your option ) any later version. * | 12 | * ( at your option ) any later version. * |
13 | * * | 13 | * * |
14 | **************************************************************************/ | 14 | **************************************************************************/ |
15 | 15 | ||
16 | #include <qdialog.h> | 16 | #include <qdialog.h> |
17 | #include <qpe/config.h> | 17 | #include <qpe/config.h> |
18 | #include <qlayout.h> | 18 | #include <qlayout.h> |
19 | #include <qpe/config.h> | 19 | #include <qpe/config.h> |
20 | #include <qpe/qpeapplication.h> | ||
20 | 21 | ||
21 | #include <qstring.h> | 22 | #include <qstring.h> |
22 | #include <qhbox.h> | 23 | #include <qhbox.h> |
23 | #include <qvbox.h> | 24 | #include <qvbox.h> |
24 | #include <qlabel.h> | 25 | #include <qlabel.h> |
25 | #include <qlistview.h> | 26 | #include <qlistview.h> |
26 | #include <qlineedit.h> | 27 | #include <qlineedit.h> |
27 | 28 | ||
28 | #include "ohighscoredlg.h" | 29 | #include "ohighscoredlg.h" |
29 | 30 | ||
30 | OHighscore::OHighscore( int score , int playerLevel ) | 31 | OHighscore::OHighscore( int score , int playerLevel ) |
31 | { | 32 | { |
@@ -160,25 +161,25 @@ OHighscoreDialog::OHighscoreDialog(OHighscore *highscore, QWidget *parent, const | |||
160 | setCaption( tr( "Highscores" ) ); | 161 | setCaption( tr( "Highscores" ) ); |
161 | vbox_layout = new QVBoxLayout( this, 4 , 4 ); | 162 | vbox_layout = new QVBoxLayout( this, 4 , 4 ); |
162 | list = new QListView( this ); | 163 | list = new QListView( this ); |
163 | list->setSorting( -1 ); | 164 | list->setSorting( -1 ); |
164 | list->addColumn( tr( "#" )); | 165 | list->addColumn( tr( "#" )); |
165 | list->addColumn( tr( "Name" )); | 166 | list->addColumn( tr( "Name" )); |
166 | list->addColumn( tr( "Points" )); | 167 | list->addColumn( tr( "Points" )); |
167 | list->addColumn( tr( "Level" )); | 168 | list->addColumn( tr( "Level" )); |
168 | 169 | ||
169 | createHighscoreListView(); | 170 | createHighscoreListView(); |
170 | 171 | ||
171 | vbox_layout->addWidget( list ); | 172 | vbox_layout->addWidget( list ); |
172 | showMaximized(); | 173 | QPEApplication::showDialog( this ); |
173 | } | 174 | } |
174 | 175 | ||
175 | void OHighscoreDialog::createHighscoreListView() | 176 | void OHighscoreDialog::createHighscoreListView() |
176 | { | 177 | { |
177 | int pos = 10; | 178 | int pos = 10; |
178 | int points_ = 0; | 179 | int points_ = 0; |
179 | int level_ = 0; | 180 | int level_ = 0; |
180 | 181 | ||
181 | std::list<t_playerData*>::reverse_iterator iListe = hs_->playerData.rbegin(); | 182 | std::list<t_playerData*>::reverse_iterator iListe = hs_->playerData.rbegin(); |
182 | 183 | ||
183 | for ( ; iListe != hs_->playerData.rend() ; ++iListe ) | 184 | for ( ; iListe != hs_->playerData.rend() ; ++iListe ) |
184 | { | 185 | { |