diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | a13e26c2f1eb3c5be81acf4f571dd4bafac10199 (patch) | |
tree | 1f1d3e407ae668b1448847970b2f1b626083faf6 /libkdegames/highscore | |
parent | 24c5cdc2737fe0044b11a12359606973eb93fc0b (diff) | |
download | tdegames-a13e26c2f1eb3c5be81acf4f571dd4bafac10199.tar.gz tdegames-a13e26c2f1eb3c5be81acf4f571dd4bafac10199.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdegames/highscore')
-rw-r--r-- | libkdegames/highscore/kexthighscore.cpp | 8 | ||||
-rw-r--r-- | libkdegames/highscore/kexthighscore.h | 6 | ||||
-rw-r--r-- | libkdegames/highscore/kexthighscore_gui.cpp | 32 | ||||
-rw-r--r-- | libkdegames/highscore/kexthighscore_gui.h | 16 | ||||
-rw-r--r-- | libkdegames/highscore/kexthighscore_internal.cpp | 16 | ||||
-rw-r--r-- | libkdegames/highscore/kexthighscore_internal.h | 6 | ||||
-rw-r--r-- | libkdegames/highscore/kexthighscore_item.cpp | 4 | ||||
-rw-r--r-- | libkdegames/highscore/kexthighscore_item.h | 2 | ||||
-rw-r--r-- | libkdegames/highscore/kexthighscore_tab.cpp | 16 | ||||
-rw-r--r-- | libkdegames/highscore/kexthighscore_tab.h | 8 | ||||
-rw-r--r-- | libkdegames/highscore/khighscore.cpp | 8 | ||||
-rw-r--r-- | libkdegames/highscore/khighscore.h | 8 | ||||
-rw-r--r-- | libkdegames/highscore/kscoredialog.cpp | 4 | ||||
-rw-r--r-- | libkdegames/highscore/kscoredialog.h | 6 |
14 files changed, 70 insertions, 70 deletions
diff --git a/libkdegames/highscore/kexthighscore.cpp b/libkdegames/highscore/kexthighscore.cpp index 22fa4a85..d352a266 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 *tqparent) +bool configure(TQWidget *parent) { internal->checkFirst(); - ConfigDialog *cd = new ConfigDialog(tqparent); + ConfigDialog *cd = new ConfigDialog(parent); cd->exec(); bool saved = cd->hasBeenSaved(); delete cd; return saved; } -void show(TQWidget *tqparent, int rank) +void show(TQWidget *parent, int rank) { - HighscoresDialog *hd = new HighscoresDialog(rank, tqparent); + HighscoresDialog *hd = new HighscoresDialog(rank, parent); hd->exec(); delete hd; } diff --git a/libkdegames/highscore/kexthighscore.h b/libkdegames/highscore/kexthighscore.h index 7f16eac6..5809a896 100644 --- a/libkdegames/highscore/kexthighscore.h +++ b/libkdegames/highscore/kexthighscore.h @@ -51,17 +51,17 @@ KDE_EXPORT void setGameType(uint gameType); * Configure the highscores. * @return true if the configuration has been modified and saved */ -KDE_EXPORT bool configure(TQWidget *tqparent); +KDE_EXPORT bool configure(TQWidget *parent); /** * Show the highscores lists. */ -KDE_EXPORT void show(TQWidget *tqparent); +KDE_EXPORT void show(TQWidget *parent); /** * Submit a score. See @ref Manager for usage example. * - * @param widget a widget used as tqparent for error message box. + * @param widget a widget used as parent for error message box. */ KDE_EXPORT void submitScore(const Score &score, TQWidget *widget); diff --git a/libkdegames/highscore/kexthighscore_gui.cpp b/libkdegames/highscore/kexthighscore_gui.cpp index 9aa28e89..02ea99b6 100644 --- a/libkdegames/highscore/kexthighscore_gui.cpp +++ b/libkdegames/highscore/kexthighscore_gui.cpp @@ -58,8 +58,8 @@ void ShowItem::paintCell(TQPainter *p, const TQColorGroup &cg, } //----------------------------------------------------------------------------- -ScoresList::ScoresList(TQWidget *tqparent) - : KListView(tqparent) +ScoresList::ScoresList(TQWidget *parent) + : KListView(parent) { setSelectionMode(TQListView::NoSelection); setItemMargin(3); @@ -99,8 +99,8 @@ void ScoresList::addLineItem(const ItemArray &items, } //----------------------------------------------------------------------------- -HighscoresList::HighscoresList(TQWidget *tqparent) - : ScoresList(tqparent) +HighscoresList::HighscoresList(TQWidget *parent) + : ScoresList(parent) {} TQString HighscoresList::itemText(const ItemContainer &item, uint row) const @@ -120,8 +120,8 @@ void HighscoresList::load(const ItemArray &items, int highlight) } //----------------------------------------------------------------------------- -HighscoresWidget::HighscoresWidget(TQWidget *tqparent) - : TQWidget(tqparent, "show_highscores_widget"), +HighscoresWidget::HighscoresWidget(TQWidget *parent) + : TQWidget(parent, "show_highscores_widget"), _scoresUrl(0), _playersUrl(0), _statsTab(0), _histoTab(0) { const ScoreInfos &s = internal->scoreInfos(); @@ -197,10 +197,10 @@ void HighscoresWidget::load(int rank) } //----------------------------------------------------------------------------- -HighscoresDialog::HighscoresDialog(int rank, TQWidget *tqparent) +HighscoresDialog::HighscoresDialog(int rank, TQWidget *parent) : KDialogBase(internal->nbGameTypes()>1 ? TreeList : Plain, i18n("Highscores"), Close|User1|User2, Close, - tqparent, "show_highscores", true, true, + parent, "show_highscores", true, true, KGuiItem(i18n("Configure..."), "configure"), KGuiItem(i18n("Export..."))), _rank(rank), _tab(0) { @@ -270,8 +270,8 @@ void HighscoresDialog::slotUser2() //----------------------------------------------------------------------------- LastMultipleScoresList::LastMultipleScoresList( - const TQValueVector<Score> &scores, TQWidget *tqparent) - : ScoresList(tqparent), _scores(scores) + const TQValueVector<Score> &scores, TQWidget *parent) + : ScoresList(parent), _scores(scores) { const ScoreInfos &s = internal->scoreInfos(); addHeader(s); @@ -307,8 +307,8 @@ TQString LastMultipleScoresList::itemText(const ItemContainer &item, //----------------------------------------------------------------------------- TotalMultipleScoresList::TotalMultipleScoresList( - const TQValueVector<Score> &scores, TQWidget *tqparent) - : ScoresList(tqparent), _scores(scores) + const TQValueVector<Score> &scores, TQWidget *parent) + : ScoresList(parent), _scores(scores) { const ScoreInfos &s = internal->scoreInfos(); addHeader(s); @@ -352,10 +352,10 @@ TQString TotalMultipleScoresList::itemText(const ItemContainer &item, //----------------------------------------------------------------------------- -ConfigDialog::ConfigDialog(TQWidget *tqparent) +ConfigDialog::ConfigDialog(TQWidget *parent) : KDialogBase(Swallow, i18n("Configure Highscores"), Ok|Apply|Cancel, Cancel, - tqparent, "configure_highscores", true, true), + parent, "configure_highscores", true, true), _saved(false), _WWHEnabled(0) { TQWidget *page = 0; @@ -516,9 +516,9 @@ bool ConfigDialog::save() } //----------------------------------------------------------------------------- -AskNameDialog::AskNameDialog(TQWidget *tqparent) +AskNameDialog::AskNameDialog(TQWidget *parent) : KDialogBase(Plain, i18n("Enter Your Nickname"), Ok | Cancel, Ok, - tqparent, "ask_name_dialog") + parent, "ask_name_dialog") { internal->hsConfig().readCurrentConfig(); diff --git a/libkdegames/highscore/kexthighscore_gui.h b/libkdegames/highscore/kexthighscore_gui.h index fc2d3912..f6b2336a 100644 --- a/libkdegames/highscore/kexthighscore_gui.h +++ b/libkdegames/highscore/kexthighscore_gui.h @@ -60,7 +60,7 @@ class ScoresList : public KListView Q_OBJECT TQ_OBJECT public: - ScoresList(TQWidget *tqparent); + ScoresList(TQWidget *parent); void addHeader(const ItemArray &); @@ -79,7 +79,7 @@ class HighscoresList : public ScoresList Q_OBJECT TQ_OBJECT public: - HighscoresList(TQWidget *tqparent); + HighscoresList(TQWidget *parent); void load(const ItemArray &, int highlight); @@ -92,7 +92,7 @@ class HighscoresWidget : public TQWidget Q_OBJECT TQ_OBJECT public: - HighscoresWidget(TQWidget *tqparent); + HighscoresWidget(TQWidget *parent); void load(int rank); @@ -118,7 +118,7 @@ class HighscoresDialog : public KDialogBase Q_OBJECT TQ_OBJECT public: - HighscoresDialog(int rank, TQWidget *tqparent); + HighscoresDialog(int rank, TQWidget *parent); private slots: void slotUser1(); @@ -138,7 +138,7 @@ class LastMultipleScoresList : public ScoresList Q_OBJECT TQ_OBJECT public: - LastMultipleScoresList(const TQValueVector<Score> &, TQWidget *tqparent); + LastMultipleScoresList(const TQValueVector<Score> &, TQWidget *parent); private: void addLineItem(const ItemArray &, uint index, TQListViewItem *line); @@ -153,7 +153,7 @@ class TotalMultipleScoresList : public ScoresList Q_OBJECT TQ_OBJECT public: - TotalMultipleScoresList(const TQValueVector<Score> &, TQWidget *tqparent); + TotalMultipleScoresList(const TQValueVector<Score> &, TQWidget *parent); private: void addLineItem(const ItemArray &, uint index, TQListViewItem *line); @@ -169,7 +169,7 @@ class ConfigDialog : public KDialogBase Q_OBJECT TQ_OBJECT public: - ConfigDialog(TQWidget *tqparent); + ConfigDialog(TQWidget *parent); bool hasBeenSaved() const { return _saved; } @@ -197,7 +197,7 @@ class AskNameDialog : public KDialogBase Q_OBJECT TQ_OBJECT public: - AskNameDialog(TQWidget *tqparent); + AskNameDialog(TQWidget *parent); TQString name() const { return _edit->text(); } bool dontAskAgain() const { return _checkbox->isChecked(); } diff --git a/libkdegames/highscore/kexthighscore_internal.cpp b/libkdegames/highscore/kexthighscore_internal.cpp index 1bd0ddbc..a679002c 100644 --- a/libkdegames/highscore/kexthighscore_internal.cpp +++ b/libkdegames/highscore/kexthighscore_internal.cpp @@ -602,15 +602,15 @@ const char *DUMMY_STRINGS[] = { const char *UNABLE_TO_CONTACT = I18N_NOOP("Unable to contact world-wide highscore server"); -bool ManagerPrivate::doQuery(const KURL &url, TQWidget *tqparent, +bool ManagerPrivate::doQuery(const KURL &url, TQWidget *parent, TQDomNamedNodeMap *map) { KIO::http_update_cache(url, true, 0); // remove cache ! TQString tmpFile; - if ( !KIO::NetAccess::download(url, tmpFile, tqparent) ) { + if ( !KIO::NetAccess::download(url, tmpFile, parent) ) { TQString details = i18n("Server URL: %1").tqarg(url.host()); - KMessageBox::detailedSorry(tqparent, i18n(UNABLE_TO_CONTACT), details); + KMessageBox::detailedSorry(parent, i18n(UNABLE_TO_CONTACT), details); return false; } @@ -618,7 +618,7 @@ bool ManagerPrivate::doQuery(const KURL &url, TQWidget *tqparent, if ( !file.open(IO_ReadOnly) ) { KIO::NetAccess::removeTempFile(tmpFile); TQString details = i18n("Unable to open temporary file."); - KMessageBox::detailedSorry(tqparent, i18n(UNABLE_TO_CONTACT), details); + KMessageBox::detailedSorry(parent, i18n(UNABLE_TO_CONTACT), details); return false; } @@ -641,24 +641,24 @@ bool ManagerPrivate::doQuery(const KURL &url, TQWidget *tqparent, TQString msg = i18n(attr.value().latin1()); TQString caption = i18n("Message from world-wide highscores " "server"); - KMessageBox::sorry(tqparent, msg, caption); + KMessageBox::sorry(parent, msg, caption); return false; } } } TQString msg = i18n("Invalid answer from world-wide highscores server."); TQString details = i18n("Raw message: %1").tqarg(content); - KMessageBox::detailedSorry(tqparent, msg, details); + KMessageBox::detailedSorry(parent, msg, details); return false; } bool ManagerPrivate::getFromQuery(const TQDomNamedNodeMap &map, const TQString &name, TQString &value, - TQWidget *tqparent) + TQWidget *parent) { TQDomAttr attr = map.namedItem(name).toAttr(); if ( attr.isNull() ) { - KMessageBox::sorry(tqparent, + KMessageBox::sorry(parent, i18n("Invalid answer from world-wide " "highscores server (missing item: %1).").tqarg(name)); return false; diff --git a/libkdegames/highscore/kexthighscore_internal.h b/libkdegames/highscore/kexthighscore_internal.h index e0aa8ca5..0bd4f9ef 100644 --- a/libkdegames/highscore/kexthighscore_internal.h +++ b/libkdegames/highscore/kexthighscore_internal.h @@ -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 *tqparent) const; - static bool doQuery(const KURL &url, TQWidget *tqparent, + bool submitWorldWide(const Score &score, TQWidget *parent) const; + static bool doQuery(const KURL &url, TQWidget *parent, TQDomNamedNodeMap *map = 0); static bool getFromQuery(const TQDomNamedNodeMap &map, const TQString &name, - TQString &value, TQWidget *tqparent); + TQString &value, TQWidget *parent); void convertToGlobal(); }; diff --git a/libkdegames/highscore/kexthighscore_item.cpp b/libkdegames/highscore/kexthighscore_item.cpp index faf7ffdf..4b48a0ee 100644 --- a/libkdegames/highscore/kexthighscore_item.cpp +++ b/libkdegames/highscore/kexthighscore_item.cpp @@ -238,7 +238,7 @@ void MultiplayerScores::addScore(uint i, const Score &score) _scores[i]._data["nb won games"] = won; } -void MultiplayerScores::show(TQWidget *tqparent) +void MultiplayerScores::show(TQWidget *parent) { // check consistency if ( _nbGames.size()<2 ) kdWarning(11002) << "less than 2 players" << endl; @@ -271,7 +271,7 @@ void MultiplayerScores::show(TQWidget *tqparent) // show the scores KDialogBase dialog(KDialogBase::Plain, i18n("Multiplayers Scores"), KDialogBase::Close, KDialogBase::Close, - tqparent, "show_multiplayers_score", true, true); + parent, "show_multiplayers_score", true, true); TQHBoxLayout *hbox = new TQHBoxLayout(dialog.plainPage(), KDialog::marginHint(), KDialog::spacingHint()); diff --git a/libkdegames/highscore/kexthighscore_item.h b/libkdegames/highscore/kexthighscore_item.h index d5faa380..b32f32e7 100644 --- a/libkdegames/highscore/kexthighscore_item.h +++ b/libkdegames/highscore/kexthighscore_item.h @@ -294,7 +294,7 @@ class KDE_EXPORT MultiplayerScores /** * Show scores. */ - void show(TQWidget *tqparent); + void show(TQWidget *parent); private: TQValueVector<uint> _nbGames; diff --git a/libkdegames/highscore/kexthighscore_tab.cpp b/libkdegames/highscore/kexthighscore_tab.cpp index 8c41227c..d47b35a6 100644 --- a/libkdegames/highscore/kexthighscore_tab.cpp +++ b/libkdegames/highscore/kexthighscore_tab.cpp @@ -39,8 +39,8 @@ namespace KExtHighscore { //----------------------------------------------------------------------------- -PlayersCombo::PlayersCombo(TQWidget *tqparent, const char *name) - : TQComboBox(tqparent, name) +PlayersCombo::PlayersCombo(TQWidget *parent, const char *name) + : TQComboBox(parent, name) { const PlayerInfos &p = internal->playerInfos(); for (uint i = 0; i<p.nbEntries(); i++) @@ -65,8 +65,8 @@ void PlayersCombo::load() } //----------------------------------------------------------------------------- -AdditionalTab::AdditionalTab(TQWidget *tqparent, const char *name) - : TQWidget(tqparent, name) +AdditionalTab::AdditionalTab(TQWidget *parent, const char *name) + : TQWidget(parent, name) { TQVBoxLayout *top = new TQVBoxLayout(this, KDialogBase::marginHint(), KDialogBase::spacingHint()); @@ -116,8 +116,8 @@ const char *StatisticsTab::TREND_LABELS[Nb_Trends] = { I18N_NOOP("Current:"), I18N_NOOP("Max won:"), I18N_NOOP("Max lost:") }; -StatisticsTab::StatisticsTab(TQWidget *tqparent) - : AdditionalTab(tqparent, "statistics_tab") +StatisticsTab::StatisticsTab(TQWidget *parent) + : AdditionalTab(parent, "statistics_tab") { // construct GUI TQVBoxLayout *top = static_cast<TQVBoxLayout *>(tqlayout()); @@ -205,8 +205,8 @@ void StatisticsTab::display(uint i) } //----------------------------------------------------------------------------- -HistogramTab::HistogramTab(TQWidget *tqparent) - : AdditionalTab(tqparent, "histogram_tab") +HistogramTab::HistogramTab(TQWidget *parent) + : AdditionalTab(parent, "histogram_tab") { // construct GUI TQVBoxLayout *top = static_cast<TQVBoxLayout *>(tqlayout()); diff --git a/libkdegames/highscore/kexthighscore_tab.h b/libkdegames/highscore/kexthighscore_tab.h index dc0d7536..d59afeb5 100644 --- a/libkdegames/highscore/kexthighscore_tab.h +++ b/libkdegames/highscore/kexthighscore_tab.h @@ -36,7 +36,7 @@ class PlayersCombo : public TQComboBox Q_OBJECT TQ_OBJECT public: - PlayersCombo(TQWidget *tqparent = 0, const char *name = 0); + PlayersCombo(TQWidget *parent = 0, const char *name = 0); void load(); @@ -55,7 +55,7 @@ class AdditionalTab : public TQWidget Q_OBJECT TQ_OBJECT public: - AdditionalTab(TQWidget *tqparent, const char *name); + AdditionalTab(TQWidget *parent, const char *name); virtual void load(); @@ -78,7 +78,7 @@ class StatisticsTab : public AdditionalTab Q_OBJECT TQ_OBJECT public: - StatisticsTab(TQWidget *tqparent); + StatisticsTab(TQWidget *parent); void load(); @@ -104,7 +104,7 @@ class HistogramTab : public AdditionalTab Q_OBJECT TQ_OBJECT public: - HistogramTab(TQWidget *tqparent); + HistogramTab(TQWidget *parent); void load(); diff --git a/libkdegames/highscore/khighscore.cpp b/libkdegames/highscore/khighscore.cpp index dd10f2ab..6d696020 100644 --- a/libkdegames/highscore/khighscore.cpp +++ b/libkdegames/highscore/khighscore.cpp @@ -56,14 +56,14 @@ static KStaticDeleter<KFileLock> lockSD; static KStaticDeleter<KRawConfig> configSD; -KHighscore::KHighscore(TQObject* tqparent) - : TQObject(tqparent) +KHighscore::KHighscore(TQObject* parent) + : TQObject(parent) { init(true); } -KHighscore::KHighscore(bool forceLocal, TQObject* tqparent) - : TQObject(tqparent) +KHighscore::KHighscore(bool forceLocal, TQObject* parent) + : TQObject(parent) { init(forceLocal); } diff --git a/libkdegames/highscore/khighscore.h b/libkdegames/highscore/khighscore.h index ba7a4bd0..b7b6fb5e 100644 --- a/libkdegames/highscore/khighscore.h +++ b/libkdegames/highscore/khighscore.h @@ -90,7 +90,7 @@ public: * Constructor. The highscore file is forced to be local to support * games using the old behaviour. */ - KHighscore(TQObject* tqparent = 0); + KHighscore(TQObject* parent = 0); /** * Constructor. @@ -98,10 +98,10 @@ public: * @param forceLocal if true, the local highscore file is used even * when the configuration has been set to use a system-wide file. This * is convenient for converting highscores from legacy applications. - * @param tqparent tqparent widget for this widget + * @param parent parent widget for this widget * @since 3.2 */ - KHighscore(bool forceLocal, TQObject *tqparent); + KHighscore(bool forceLocal, TQObject *parent); /** * Read the current state of the highscore file. Remember that when @@ -133,7 +133,7 @@ public: * If the config file cannot be locked, * the method waits for 1 second and, if it failed again, displays * a message box asking for retry or cancel. - * @param widget used as the tqparent of the message box. + * @param widget used as the parent of the message box. * * @return false on error or if the config file is locked by another * process. In such case, the config stays read-only. diff --git a/libkdegames/highscore/kscoredialog.cpp b/libkdegames/highscore/kscoredialog.cpp index 0a3710f4..e799883b 100644 --- a/libkdegames/highscore/kscoredialog.cpp +++ b/libkdegames/highscore/kscoredialog.cpp @@ -64,8 +64,8 @@ public: }; -KScoreDialog::KScoreDialog(int fields, TQWidget *tqparent, const char *oname) - : KDialogBase(tqparent, oname, true, i18n("High Scores"), Ok, Ok, true) +KScoreDialog::KScoreDialog(int fields, TQWidget *parent, const char *oname) + : KDialogBase(parent, oname, true, i18n("High Scores"), Ok, Ok, true) { d = new KScoreDialogPrivate(); d->edit = 0; diff --git a/libkdegames/highscore/kscoredialog.h b/libkdegames/highscore/kscoredialog.h index 35a593b3..99a9f70b 100644 --- a/libkdegames/highscore/kscoredialog.h +++ b/libkdegames/highscore/kscoredialog.h @@ -57,10 +57,10 @@ public: /** * @param fields Which fields should be listed. - * @param tqparent passed to tqparent TQWidget constructor - * @param name passed to tqparent TQWidget constructor + * @param parent passed to parent TQWidget constructor + * @param name passed to parent TQWidget constructor */ - KScoreDialog(int fields, TQWidget *tqparent=0, const char *name=0); + KScoreDialog(int fields, TQWidget *parent=0, const char *name=0); ~KScoreDialog(); |