diff options
Diffstat (limited to 'libkdegames/highscore/kexthighscore_item.cpp')
-rw-r--r-- | libkdegames/highscore/kexthighscore_item.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libkdegames/highscore/kexthighscore_item.cpp b/libkdegames/highscore/kexthighscore_item.cpp index fa6c7e2c..44fe64fa 100644 --- a/libkdegames/highscore/kexthighscore_item.cpp +++ b/libkdegames/highscore/kexthighscore_item.cpp @@ -33,8 +33,8 @@ namespace KExtHighscore { //----------------------------------------------------------------------------- -Item::Item(const TQVariant &def, const TQString &label, int alignment) - : _default(def), _label(label), _alignment(alignment), +Item::Item(const TQVariant &def, const TQString &label, int tqalignment) + : _default(def), _label(label), _tqalignment(tqalignment), _format(NoFormat), _special(NoSpecial) {} @@ -154,13 +154,13 @@ Score::~Score() const TQVariant &Score::data(const TQString &name) const { - Q_ASSERT( _data.contains(name) ); + Q_ASSERT( _data.tqcontains(name) ); return _data[name]; } void Score::setData(const TQString &name, const TQVariant &value) { - Q_ASSERT( _data.contains(name) ); + Q_ASSERT( _data.tqcontains(name) ); Q_ASSERT( _data[name].type()==value.type() ); _data[name] = value; } @@ -178,14 +178,14 @@ bool Score::operator <(const Score &score) TQDataStream &operator <<(TQDataStream &s, const Score &score) { - s << (Q_UINT8)score.type(); + s << (TQ_UINT8)score.type(); s << score._data; return s; } TQDataStream &operator >>(TQDataStream &s, Score &score) { - Q_UINT8 type; + TQ_UINT8 type; s >> type; score._type = (ScoreType)type; s >> score._data; @@ -238,7 +238,7 @@ void MultiplayerScores::addScore(uint i, const Score &score) _scores[i]._data["nb won games"] = won; } -void MultiplayerScores::show(TQWidget *parent) +void MultiplayerScores::show(TQWidget *tqparent) { // check consistency if ( _nbGames.size()<2 ) kdWarning(11002) << "less than 2 players" << endl; @@ -271,7 +271,7 @@ void MultiplayerScores::show(TQWidget *parent) // show the scores KDialogBase dialog(KDialogBase::Plain, i18n("Multiplayers Scores"), KDialogBase::Close, KDialogBase::Close, - parent, "show_multiplayers_score", true, true); + tqparent, "show_multiplayers_score", true, true); TQHBoxLayout *hbox = new TQHBoxLayout(dialog.plainPage(), KDialog::marginHint(), KDialog::spacingHint()); @@ -287,7 +287,7 @@ void MultiplayerScores::show(TQWidget *parent) vbox = new TQVBox(dialog.plainPage()); hbox->addWidget(vbox); (void)new TQLabel(i18n("Scores for the last %1 games:") - .arg(_nbGames[0]), vbox); + .tqarg(_nbGames[0]), vbox); (void)new TotalMultipleScoresList(ordered, vbox); } |