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 /libkdegames/highscore/kexthighscore.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 'libkdegames/highscore/kexthighscore.cpp')
-rw-r--r-- | libkdegames/highscore/kexthighscore.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libkdegames/highscore/kexthighscore.cpp b/libkdegames/highscore/kexthighscore.cpp index 585dafd4..22fa4a85 100644 --- a/libkdegames/highscore/kexthighscore.cpp +++ b/libkdegames/highscore/kexthighscore.cpp @@ -44,19 +44,19 @@ void setGameType(uint type) internal->setGameType(type); } -bool configure(TQWidget *parent) +bool configure(TQWidget *tqparent) { internal->checkFirst(); - ConfigDialog *cd = new ConfigDialog(parent); + ConfigDialog *cd = new ConfigDialog(tqparent); cd->exec(); bool saved = cd->hasBeenSaved(); delete cd; return saved; } -void show(TQWidget *parent, int rank) +void show(TQWidget *tqparent, int rank) { - HighscoresDialog *hd = new HighscoresDialog(rank, parent); + HighscoresDialog *hd = new HighscoresDialog(rank, tqparent); hd->exec(); delete hd; } @@ -208,19 +208,19 @@ Item *Manager::createItem(ItemType type) Item *item = 0; switch (type) { case ScoreDefault: - item = new Item((uint)0, i18n("Score"), Qt::AlignRight); + item = new Item((uint)0, i18n("Score"), TQt::AlignRight); break; case MeanScoreDefault: - item = new Item((double)0, i18n("Mean Score"), Qt::AlignRight); + item = new Item((double)0, i18n("Mean Score"), TQt::AlignRight); item->setPrettyFormat(Item::OneDecimal); item->setPrettySpecial(Item::DefaultNotDefined); break; case BestScoreDefault: - item = new Item((uint)0, i18n("Best Score"), Qt::AlignRight); + item = new Item((uint)0, i18n("Best Score"), TQt::AlignRight); item->setPrettySpecial(Item::DefaultNotDefined); break; case ElapsedTime: - item = new Item((uint)0, i18n("Elapsed Time"), Qt::AlignRight); + item = new Item((uint)0, i18n("Elapsed Time"), TQt::AlignRight); item->setPrettyFormat(Item::MinuteTime); item->setPrettySpecial(Item::ZeroNotDefined); break; @@ -272,7 +272,7 @@ TQString Manager::gameTypeLabel(uint gameType, LabelType type) const case I18N: break; case WW: return "normal"; } - return TQString::null; + return TQString(); } void Manager::addToQueryURL(KURL &url, const TQString &item, |