diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
commit | 838baf3f99ec5ab81b063eb5449a3381d860f377 (patch) | |
tree | dd31abcfde08ca92e4623b8f50b3d762a87c997a /libksirtet/common/highscores.cpp | |
parent | 2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff) | |
download | tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip |
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libksirtet/common/highscores.cpp')
-rw-r--r-- | libksirtet/common/highscores.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libksirtet/common/highscores.cpp b/libksirtet/common/highscores.cpp index 459b35af..fb1642c0 100644 --- a/libksirtet/common/highscores.cpp +++ b/libksirtet/common/highscores.cpp @@ -11,10 +11,10 @@ using namespace KExtHighscore; CommonHighscores::CommonHighscores() { - Item *item = new Item((uint)1, i18n("Level"), Qt::AlignRight); + Item *item = new Item((uint)1, i18n("Level"), TQt::AlignRight); addScoreItem("level", item); item = new Item((uint)0, i18n(bfactory->mainData.removedLabel), - Qt::AlignRight); + TQt::AlignRight); addScoreItem("removed", item); } @@ -23,13 +23,13 @@ void CommonHighscores::convertLegacy(uint) KConfigGroupSaver cg(kapp->config(), "High Scores"); for (uint i=0; i<10; i++) { TQString name - = cg.config()->readEntry(TQString("name%1").arg(i), TQString::null); + = cg.config()->readEntry(TQString("name%1").tqarg(i), TQString()); if ( name.isNull() ) break; if ( name.isEmpty() ) name = i18n("anonymous"); uint score - = cg.config()->readUnsignedNumEntry(TQString("score%1").arg(i), 0); + = cg.config()->readUnsignedNumEntry(TQString("score%1").tqarg(i), 0); uint level - = cg.config()->readUnsignedNumEntry(TQString("level%1").arg(i), 1); + = cg.config()->readUnsignedNumEntry(TQString("level%1").tqarg(i), 1); Score s(Won); s.setScore(score); s.setData("name", name); |