summaryrefslogtreecommitdiffstats
path: root/libkdegames/highscore/kexthighscore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdegames/highscore/kexthighscore.cpp')
-rw-r--r--libkdegames/highscore/kexthighscore.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/libkdegames/highscore/kexthighscore.cpp b/libkdegames/highscore/kexthighscore.cpp
index 0ad9b3af..585dafd4 100644
--- a/libkdegames/highscore/kexthighscore.cpp
+++ b/libkdegames/highscore/kexthighscore.cpp
@@ -19,7 +19,7 @@
#include "kexthighscore.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kdebug.h>
@@ -44,7 +44,7 @@ void setGameType(uint type)
internal->setGameType(type);
}
-bool configure(QWidget *parent)
+bool configure(TQWidget *parent)
{
internal->checkFirst();
ConfigDialog *cd = new ConfigDialog(parent);
@@ -54,14 +54,14 @@ bool configure(QWidget *parent)
return saved;
}
-void show(QWidget *parent, int rank)
+void show(TQWidget *parent, int rank)
{
HighscoresDialog *hd = new HighscoresDialog(rank, parent);
hd->exec();
delete hd;
}
-void submitScore(const Score &score, QWidget *widget)
+void submitScore(const Score &score, TQWidget *widget)
{
int rank = internal->submitScore(score, widget,
internal->showMode!=Manager::NeverShow);
@@ -81,7 +81,7 @@ void submitScore(const Score &score, QWidget *widget)
}
}
-void show(QWidget *widget)
+void show(TQWidget *widget)
{
internal->checkFirst();
show(widget, -1);
@@ -145,7 +145,7 @@ void Manager::setShowDrawGamesStatistic(bool show)
internal->showDrawGames = show;
}
-void Manager::setWWHighscores(const KURL &url, const QString &version)
+void Manager::setWWHighscores(const KURL &url, const TQString &version)
{
Q_ASSERT( url.isValid() );
internal->serverURL = url;
@@ -157,7 +157,7 @@ void Manager::setWWHighscores(const KURL &url, const QString &version)
internal->version = version;
}
-void Manager::setScoreHistogram(const QMemArray<uint> &scores,
+void Manager::setScoreHistogram(const TQMemArray<uint> &scores,
ScoreTypeBound type)
{
Q_ASSERT( scores.size()>=2 );
@@ -238,7 +238,7 @@ void Manager::setScoreItem(uint worstScore, Item *item)
->item()->setDefaultValue(worstScore);
}
-void Manager::addScoreItem(const QString &name, Item *item)
+void Manager::addScoreItem(const TQString &name, Item *item)
{
internal->scoreInfos().addItem(name, item, true);
}
@@ -247,7 +247,7 @@ void Manager::setPlayerItem(PlayerItemType type, Item *item)
{
const Item *scoreItem = internal->scoreInfos().item("score")->item();
uint def = scoreItem->defaultValue().toUInt();
- QString name;
+ TQString name;
switch (type) {
case MeanScore:
name = "mean score";
@@ -261,7 +261,7 @@ void Manager::setPlayerItem(PlayerItemType type, Item *item)
internal->playerInfos().setItem(name, item);
}
-QString Manager::gameTypeLabel(uint gameType, LabelType type) const
+TQString Manager::gameTypeLabel(uint gameType, LabelType type) const
{
if ( gameType!=0 )
kdFatal(11002) << "You need to reimplement KExtHighscore::Manager for "
@@ -272,15 +272,15 @@ QString Manager::gameTypeLabel(uint gameType, LabelType type) const
case I18N: break;
case WW: return "normal";
}
- return QString::null;
+ return TQString::null;
}
-void Manager::addToQueryURL(KURL &url, const QString &item,
- const QString &content)
+void Manager::addToQueryURL(KURL &url, const TQString &item,
+ const TQString &content)
{
Q_ASSERT( !item.isEmpty() && url.queryItem(item).isNull() );
- QString query = url.query();
+ TQString query = url.query();
if ( !query.isEmpty() ) query += '&';
query += item + '=' + KURL::encode_string(content);
url.setQuery(query);