summaryrefslogtreecommitdiffstats
path: root/kmines/solver
diff options
context:
space:
mode:
Diffstat (limited to 'kmines/solver')
-rw-r--r--kmines/solver/advFastRules.cpp26
-rw-r--r--kmines/solver/headerP.h2
-rw-r--r--kmines/solver/solver.cpp8
-rw-r--r--kmines/solver/solver.h4
4 files changed, 20 insertions, 20 deletions
diff --git a/kmines/solver/advFastRules.cpp b/kmines/solver/advFastRules.cpp
index 56b97b72..79c42bba 100644
--- a/kmines/solver/advFastRules.cpp
+++ b/kmines/solver/advFastRules.cpp
@@ -159,9 +159,9 @@ void AdviseFast::RuleSet::addGeneral(Coord p){
int AdviseFast::Rule::leaks = 0;
#endif
-AdviseFast::Rule::Rule(RuleSet *tqparent) :
- _parent(tqparent),
- _facts(tqparent->facts)
+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();