summaryrefslogtreecommitdiffstats
path: root/kmines/solver/solver.cpp
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 /kmines/solver/solver.cpp
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 'kmines/solver/solver.cpp')
-rw-r--r--kmines/solver/solver.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kmines/solver/solver.cpp b/kmines/solver/solver.cpp
index f8607b79..36519043 100644
--- a/kmines/solver/solver.cpp
+++ b/kmines/solver/solver.cpp
@@ -50,8 +50,8 @@ class SolverPrivate
#endif
};
-Solver::Solver(TQObject *parent)
- : TQObject(parent)
+Solver::Solver(TQObject *tqparent)
+ : TQObject(tqparent)
{
d = new SolverPrivate;
@@ -186,9 +186,9 @@ bool Solver::solveOneStep(BaseField &field)
//-----------------------------------------------------------------------------
-SolvingRateDialog::SolvingRateDialog(const BaseField &field, TQWidget *parent)
+SolvingRateDialog::SolvingRateDialog(const BaseField &field, TQWidget *tqparent)
: KDialogBase(Plain, i18n("Compute Solving Rate"), Ok|Close,
- Close, parent, "compute_solving_rate", true, true),
+ Close, tqparent, "compute_solving_rate", true, true),
_refField(field)
{
connect(&_solver, TQT_SIGNAL(solvingDone(bool)), TQT_SLOT(solvingDone(bool)));
@@ -198,13 +198,13 @@ SolvingRateDialog::SolvingRateDialog(const BaseField &field, TQWidget *parent)
setButtonOK(item);
TQVBoxLayout *top = new TQVBoxLayout(plainPage(), 0, spacingHint());
- TQLabel *label = new TQLabel(i18n("Width: %1").arg(field.width()),
+ TQLabel *label = new TQLabel(i18n("Width: %1").tqarg(field.width()),
plainPage());
top->addWidget(label);
- label = new TQLabel(i18n("Height: %1").arg(field.height()), plainPage());
+ label = new TQLabel(i18n("Height: %1").tqarg(field.height()), plainPage());
top->addWidget(label);
- label = new TQLabel(i18n("Mines: %1 (%2%)").arg(field.nbMines())
- .arg( field.nbMines() * 100.0 / field.size()),
+ label = new TQLabel(i18n("Mines: %1 (%2%)").tqarg(field.nbMines())
+ .tqarg( field.nbMines() * 100.0 / field.size()),
plainPage());
top->addWidget(label);
@@ -243,7 +243,7 @@ void SolvingRateDialog::solvingDone(bool success)
{
if (success) _success++;
_label->setText(i18n("Success rate: %1%")
- .arg(_success * 100.0 / _i, 0, 'f', 3));
+ .tqarg(_success * 100.0 / _i, 0, 'f', 3));
_progress->advance(1);
TQTimer::singleShot(0, this, TQT_SLOT(step()));
}