From a13e26c2f1eb3c5be81acf4f571dd4bafac10199 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 22:19:39 +0000 Subject: 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 --- kmines/dialogs.cpp | 4 ++-- kmines/dialogs.h | 6 +++--- kmines/field.cpp | 4 ++-- kmines/field.h | 2 +- kmines/frame.cpp | 44 +++++++++++++++++++++--------------------- kmines/frame.h | 8 ++++---- kmines/solver/advFastRules.cpp | 26 ++++++++++++------------- kmines/solver/headerP.h | 2 +- kmines/solver/solver.cpp | 8 ++++---- kmines/solver/solver.h | 4 ++-- kmines/status.cpp | 4 ++-- kmines/status.h | 2 +- 12 files changed, 57 insertions(+), 57 deletions(-) (limited to 'kmines') diff --git a/kmines/dialogs.cpp b/kmines/dialogs.cpp index a81c8d91..7fb5dec9 100644 --- a/kmines/dialogs.cpp +++ b/kmines/dialogs.cpp @@ -61,8 +61,8 @@ void Smiley::setMood(Mood mood) } //----------------------------------------------------------------------------- -DigitalClock::DigitalClock(TQWidget *tqparent) -: KGameLCDClock(tqparent, "digital_clock") +DigitalClock::DigitalClock(TQWidget *parent) +: KGameLCDClock(parent, "digital_clock") { setFrameStyle(Panel | Sunken); setDefaultBackgroundColor(black); diff --git a/kmines/dialogs.h b/kmines/dialogs.h index f900f7e6..799074f6 100644 --- a/kmines/dialogs.h +++ b/kmines/dialogs.h @@ -36,8 +36,8 @@ class Smiley : public TQPushButton, public KMines Q_OBJECT TQ_OBJECT public: - Smiley(TQWidget *tqparent, const char *name = 0) - : TQPushButton(TQString(), tqparent, name) {} + Smiley(TQWidget *parent, const char *name = 0) + : TQPushButton(TQString(), parent, name) {} public slots: void setMood(Mood); @@ -52,7 +52,7 @@ class DigitalClock : public KGameLCDClock Q_OBJECT TQ_OBJECT public: - DigitalClock(TQWidget *tqparent); + DigitalClock(TQWidget *parent); void reset(bool customGame); diff --git a/kmines/field.cpp b/kmines/field.cpp index 582e6663..035b3708 100644 --- a/kmines/field.cpp +++ b/kmines/field.cpp @@ -44,8 +44,8 @@ const Field::ActionData Field::ACTION_DATA[Nb_Actions] = { { "UnsetUncertain", "unset_uncertain", I18N_NOOP("Question mark unset") } }; -Field::Field(TQWidget *tqparent) - : FieldFrame(tqparent), _state(Init), _solvingState(Regular), _level(Level::Easy) +Field::Field(TQWidget *parent) + : FieldFrame(parent), _state(Init), _solvingState(Regular), _level(Level::Easy) {} void Field::readSettings() diff --git a/kmines/field.h b/kmines/field.h index 4d17358f..2c21348b 100644 --- a/kmines/field.h +++ b/kmines/field.h @@ -37,7 +37,7 @@ class Field : public FieldFrame, public BaseField static const ActionData ACTION_DATA[Nb_Actions]; public: - Field(TQWidget *tqparent); + Field(TQWidget *parent); virtual TQSize tqsizeHint() const; diff --git a/kmines/frame.cpp b/kmines/frame.cpp index b5c154b0..5eee07ba 100644 --- a/kmines/frame.cpp +++ b/kmines/frame.cpp @@ -26,8 +26,8 @@ #include "settings.h" -FieldFrame::FieldFrame(TQWidget *tqparent) - : TQFrame(tqparent, "field"), _button(0) +FieldFrame::FieldFrame(TQWidget *parent) + : TQFrame(parent, "field"), _button(0) { setFrameStyle( TQFrame::Box | TQFrame::Raised ); setLineWidth(2); @@ -39,18 +39,18 @@ void FieldFrame::adjustSize() setFixedSize(tqsizeHint()); _button.resize(Settings::caseSize(), Settings::caseSize()); - TQBitmap tqmask; + TQBitmap mask; for (uint i=0; ifacts) +AdviseFast::Rule::Rule(RuleSet *parent) : + _parent(parent), + _facts(parent->facts) { #if defined(DEBUG) && DEBUG >= 2 cout << "Rule::Rule, leaks = " << ++leaks << endl; @@ -177,8 +177,8 @@ AdviseFast::Rule::~Rule() AdviseFast::GeneralRule::GeneralRule( Coord fact, - RuleSet *tqparent) : - Rule(tqparent), + RuleSet *parent) : + Rule(parent), _fact(fact) {} @@ -242,8 +242,8 @@ bool AdviseFast::GeneralRule::apply(CoordSet *) AdviseFast::EmptyRule::EmptyRule( Coord fact, - RuleSet *tqparent) : - Rule(tqparent), + RuleSet *parent) : + Rule(parent), _fact(fact) {} @@ -285,8 +285,8 @@ bool AdviseFast::EmptyRule::apply( AdviseFast::FullRule::FullRule( Coord fact, - RuleSet *tqparent) : - Rule(tqparent), + RuleSet *parent) : + Rule(parent), _fact(fact) {} @@ -336,8 +336,8 @@ bool AdviseFast::FullRule::apply( AdviseFast::InclusionRule::InclusionRule( Coord bigger, Coord smaller, - RuleSet *tqparent) : - Rule(tqparent), + RuleSet *parent) : + Rule(parent), _bigger(bigger), _smaller(smaller) {} @@ -402,8 +402,8 @@ bool AdviseFast::InclusionRule::apply( AdviseFast::IntersectionRule::IntersectionRule( Coord bigger, Coord smaller, - RuleSet *tqparent) : - Rule(tqparent), + RuleSet *parent) : + Rule(parent), _bigger(bigger), _smaller(smaller) {} diff --git a/kmines/solver/headerP.h b/kmines/solver/headerP.h index 6cecd458..984e3113 100644 --- a/kmines/solver/headerP.h +++ b/kmines/solver/headerP.h @@ -107,7 +107,7 @@ namespace AdviseFast { */ class RuleSet; struct Rule { - Rule(RuleSet *tqparent); + Rule(RuleSet *parent); virtual ~Rule(); virtual bool apply(CoordSet *surePoints) = 0; diff --git a/kmines/solver/solver.cpp b/kmines/solver/solver.cpp index 36519043..0c90b747 100644 --- a/kmines/solver/solver.cpp +++ b/kmines/solver/solver.cpp @@ -50,8 +50,8 @@ class SolverPrivate #endif }; -Solver::Solver(TQObject *tqparent) - : TQObject(tqparent) +Solver::Solver(TQObject *parent) + : TQObject(parent) { d = new SolverPrivate; @@ -186,9 +186,9 @@ bool Solver::solveOneStep(BaseField &field) //----------------------------------------------------------------------------- -SolvingRateDialog::SolvingRateDialog(const BaseField &field, TQWidget *tqparent) +SolvingRateDialog::SolvingRateDialog(const BaseField &field, TQWidget *parent) : KDialogBase(Plain, i18n("Compute Solving Rate"), Ok|Close, - Close, tqparent, "compute_solving_rate", true, true), + Close, parent, "compute_solving_rate", true, true), _refField(field) { connect(&_solver, TQT_SIGNAL(solvingDone(bool)), TQT_SLOT(solvingDone(bool))); diff --git a/kmines/solver/solver.h b/kmines/solver/solver.h index 07b8881a..a5305aa3 100644 --- a/kmines/solver/solver.h +++ b/kmines/solver/solver.h @@ -34,7 +34,7 @@ class Solver : public TQObject Q_OBJECT TQ_OBJECT public: - Solver(TQObject *tqparent = 0); + Solver(TQObject *parent = 0); ~Solver(); /** A method to advice a point placement */ @@ -65,7 +65,7 @@ class SolvingRateDialog : public KDialogBase Q_OBJECT TQ_OBJECT public: - SolvingRateDialog(const BaseField &field, TQWidget *tqparent); + SolvingRateDialog(const BaseField &field, TQWidget *parent); private slots: void step(); diff --git a/kmines/status.cpp b/kmines/status.cpp index 6d20bf97..31fd7b36 100644 --- a/kmines/status.cpp +++ b/kmines/status.cpp @@ -45,8 +45,8 @@ #include "version.h" -tqStatus::tqStatus(TQWidget *tqparent) - : TQWidget(tqparent, "status"), _oldLevel(Level::Easy) +tqStatus::tqStatus(TQWidget *parent) + : TQWidget(parent, "status"), _oldLevel(Level::Easy) { _timer = new TQTimer(this); connect(_timer, TQT_SIGNAL(timeout()), TQT_SLOT(replayStep())); diff --git a/kmines/status.h b/kmines/status.h index 3626473a..a91fcda9 100644 --- a/kmines/status.h +++ b/kmines/status.h @@ -35,7 +35,7 @@ class tqStatus : public TQWidget, public KMines Q_OBJECT TQ_OBJECT public : - tqStatus(TQWidget *tqparent); + tqStatus(TQWidget *parent); const Level ¤tLevel() const { return _field->level(); } bool isPlaying() const { return _field->gameState()==Playing; } -- cgit v1.2.1