summaryrefslogtreecommitdiffstats
path: root/libkdegames/highscore/kexthighscore_internal.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
commit838baf3f99ec5ab81b063eb5449a3381d860f377 (patch)
treedd31abcfde08ca92e4623b8f50b3d762a87c997a /libkdegames/highscore/kexthighscore_internal.h
parent2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff)
downloadtdegames-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 'libkdegames/highscore/kexthighscore_internal.h')
-rw-r--r--libkdegames/highscore/kexthighscore_internal.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/libkdegames/highscore/kexthighscore_internal.h b/libkdegames/highscore/kexthighscore_internal.h
index ff70c5cd..e0aa8ca5 100644
--- a/libkdegames/highscore/kexthighscore_internal.h
+++ b/libkdegames/highscore/kexthighscore_internal.h
@@ -46,7 +46,7 @@ class RankItem : public Item
{
public:
RankItem()
- : Item((uint)0, i18n("Rank"), Qt::AlignRight) {}
+ : Item((uint)0, i18n("Rank"), TQt::AlignRight) {}
TQVariant read(uint rank, const TQVariant &) const { return rank; }
TQString pretty(uint rank, const TQVariant &) const
@@ -57,7 +57,7 @@ class NameItem : public Item
{
public:
NameItem()
- : Item(TQString::null, i18n("Name"), Qt::AlignLeft) {
+ : Item(TQString(), i18n("Name"), TQt::AlignLeft) {
setPrettySpecial(Anonymous);
}
};
@@ -66,7 +66,7 @@ class DateItem : public Item
{
public:
DateItem()
- : Item(TQDateTime(), i18n("Date"), Qt::AlignRight) {
+ : Item(TQDateTime(), i18n("Date"), TQt::AlignRight) {
setPrettyFormat(DateTime);
}
};
@@ -75,7 +75,7 @@ class SuccessPercentageItem : public Item
{
public:
SuccessPercentageItem()
- : Item((double)-1, i18n("Success"), Qt::AlignRight) {
+ : Item((double)-1, i18n("Success"), TQt::AlignRight) {
setPrettyFormat(Percentage);
setPrettySpecial(NegativeNotDefined);
}
@@ -176,7 +176,7 @@ class ScoreInfos : public ItemArray
class ConfigGroup : public KConfigGroupSaver
{
public:
- ConfigGroup(const TQString &group = TQString::null)
+ ConfigGroup(const TQString &group = TQString())
: KConfigGroupSaver(kapp->config(), group) {}
};
@@ -243,7 +243,7 @@ class ManagerPrivate
PlayerInfos &playerInfos() { return *_playerInfos; }
KHighscore &hsConfig() { return *_hsConfig; }
enum QueryType { Submit, Register, Change, Players, Scores };
- KURL queryURL(QueryType type, const TQString &newName=TQString::null) const;
+ KURL queryURL(QueryType type, const TQString &newName=TQString()) const;
void exportHighscores(TQTextStream &);
@@ -264,11 +264,11 @@ class ManagerPrivate
// return -1 if not a local best score
int rank(const Score &score) const;
- bool submitWorldWide(const Score &score, TQWidget *parent) const;
- static bool doQuery(const KURL &url, TQWidget *parent,
+ bool submitWorldWide(const Score &score, TQWidget *tqparent) const;
+ static bool doQuery(const KURL &url, TQWidget *tqparent,
TQDomNamedNodeMap *map = 0);
static bool getFromQuery(const TQDomNamedNodeMap &map, const TQString &name,
- TQString &value, TQWidget *parent);
+ TQString &value, TQWidget *tqparent);
void convertToGlobal();
};