summaryrefslogtreecommitdiffstats
path: root/knetwalk/src/highscores.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /knetwalk/src/highscores.cpp
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz
tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knetwalk/src/highscores.cpp')
-rw-r--r--knetwalk/src/highscores.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/knetwalk/src/highscores.cpp b/knetwalk/src/highscores.cpp
index 28742662..4bcbf922 100644
--- a/knetwalk/src/highscores.cpp
+++ b/knetwalk/src/highscores.cpp
@@ -31,14 +31,14 @@ namespace KExtHighscore
setShowStatistics(true);
*/
const uint RANGE[16] = { 0, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160 };
- QMemArray<uint> s;
+ TQMemArray<uint> s;
s.duplicate(RANGE, 16);
setScoreHistogram(s, ScoreNotBound);
//Item *item = new Item((uint)0, i18n("Clicks"), Qt::AlignRight);
//addScoreItem("nb_actions", item);
}
- QString ExtManager::gameTypeLabel(uint gameType, LabelType /*type*/) const
+ TQString ExtManager::gameTypeLabel(uint gameType, LabelType /*type*/) const
{
/*const Level::Data &data = Level::DATA[gameType];
switch (type) {
@@ -47,13 +47,13 @@ namespace KExtHighscore
case I18N: return i18n(level[gameType]);
case WW: return data.wwLabel;
}
- return QString::null;*/
+ return TQString::null;*/
return i18n(levels[gameType]);
}
void ExtManager::convertLegacy(uint gameType)
{
- QString group;
+ TQString group;
switch (gameType)
{
case Settings::EnumSkill::Novice: group = "Novice level"; break;
@@ -64,7 +64,7 @@ namespace KExtHighscore
}
KConfigGroupSaver cg(kapp->config(), group);
- QString name = cg.config()->readEntry("Name", QString::null);
+ TQString name = cg.config()->readEntry("Name", TQString::null);
if ( name.isNull() ) return;
if ( name.isEmpty() ) name = i18n("anonymous");
int score = cg.config()->readNumEntry("score", 0);