summaryrefslogtreecommitdiffstats
path: root/kreversi/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 /kreversi/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 'kreversi/highscores.cpp')
-rw-r--r--kreversi/highscores.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kreversi/highscores.cpp b/kreversi/highscores.cpp
index 88317a87..1da40d26 100644
--- a/kreversi/highscores.cpp
+++ b/kreversi/highscores.cpp
@@ -45,23 +45,23 @@ ExtManager::ExtManager()
setShowDrawGamesStatistic(true);
const uint RANGE[6] = { 0, 32, 40, 48, 56, 64 };
- QMemArray<uint> s;
+ TQMemArray<uint> s;
s.duplicate(RANGE, 6);
setScoreHistogram(s, ScoreBound);
}
-QString ExtManager::gameTypeLabel(uint gameType, LabelType type) const
+TQString ExtManager::gameTypeLabel(uint gameType, LabelType type) const
{
const Data &data = DATA[gameType];
switch (type) {
case Icon: return data.icon;
- case Standard: return QString::number(gameType);
+ case Standard: return TQString::number(gameType);
case I18N: return i18n(data.label);
case WW: break;
}
- return QString::null;
+ return TQString::null;
}
@@ -78,8 +78,8 @@ void ExtManager::convertLegacy(uint gameType)
KConfigGroupSaver cg(kapp->config(), "High Score");
for (uint i = 1; i <= 10; i++) {
- QString key = "Pos" + QString::number(i);
- QString name = cg.config()->readEntry(key + "Name", QString::null);
+ TQString key = "Pos" + TQString::number(i);
+ TQString name = cg.config()->readEntry(key + "Name", TQString::null);
if ( name.isEmpty() )
name = i18n("anonymous");
@@ -88,8 +88,8 @@ void ExtManager::convertLegacy(uint gameType)
if ( score==0 )
continue;
- QString sdate = cg.config()->readEntry(key + "Date", QString::null);
- QDateTime date = QDateTime::fromString(sdate);
+ TQString sdate = cg.config()->readEntry(key + "Date", TQString::null);
+ TQDateTime date = TQDateTime::fromString(sdate);
Score s(Won);
s.setScore(score);