summaryrefslogtreecommitdiffstats
path: root/kmines/solver/solver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmines/solver/solver.cpp')
-rw-r--r--kmines/solver/solver.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kmines/solver/solver.cpp b/kmines/solver/solver.cpp
index 00807fca..f8607b79 100644
--- a/kmines/solver/solver.cpp
+++ b/kmines/solver/solver.cpp
@@ -23,9 +23,9 @@
#include <algorithm>
#include <assert.h>
-#include <qtimer.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqtimer.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <kprogress.h>
#include <klocale.h>
@@ -50,8 +50,8 @@ class SolverPrivate
#endif
};
-Solver::Solver(QObject *parent)
- : QObject(parent)
+Solver::Solver(TQObject *parent)
+ : TQObject(parent)
{
d = new SolverPrivate;
@@ -174,7 +174,7 @@ bool Solver::solveStep()
}
if (_inOneStep) return solveStep();
- else QTimer::singleShot(0, this, SLOT(solveStep()));
+ else TQTimer::singleShot(0, this, TQT_SLOT(solveStep()));
return false;
}
@@ -186,24 +186,24 @@ bool Solver::solveOneStep(BaseField &field)
//-----------------------------------------------------------------------------
-SolvingRateDialog::SolvingRateDialog(const BaseField &field, QWidget *parent)
+SolvingRateDialog::SolvingRateDialog(const BaseField &field, TQWidget *parent)
: KDialogBase(Plain, i18n("Compute Solving Rate"), Ok|Close,
Close, parent, "compute_solving_rate", true, true),
_refField(field)
{
- connect(&_solver, SIGNAL(solvingDone(bool)), SLOT(solvingDone(bool)));
+ connect(&_solver, TQT_SIGNAL(solvingDone(bool)), TQT_SLOT(solvingDone(bool)));
KGuiItem item = KStdGuiItem::ok();
item.setText(i18n("Start"));
setButtonOK(item);
- QVBoxLayout *top = new QVBoxLayout(plainPage(), 0, spacingHint());
- QLabel *label = new QLabel(i18n("Width: %1").arg(field.width()),
+ TQVBoxLayout *top = new TQVBoxLayout(plainPage(), 0, spacingHint());
+ TQLabel *label = new TQLabel(i18n("Width: %1").arg(field.width()),
plainPage());
top->addWidget(label);
- label = new QLabel(i18n("Height: %1").arg(field.height()), plainPage());
+ label = new TQLabel(i18n("Height: %1").arg(field.height()), plainPage());
top->addWidget(label);
- label = new QLabel(i18n("Mines: %1 (%2%)").arg(field.nbMines())
+ label = new TQLabel(i18n("Mines: %1 (%2%)").arg(field.nbMines())
.arg( field.nbMines() * 100.0 / field.size()),
plainPage());
top->addWidget(label);
@@ -215,7 +215,7 @@ SolvingRateDialog::SolvingRateDialog(const BaseField &field, QWidget *parent)
_progress->setFormat("%v");
top->addWidget(_progress);
- _label = new QLabel(i18n("Success rate:"), plainPage());
+ _label = new TQLabel(i18n("Success rate:"), plainPage());
top->addWidget(_label);
}
@@ -225,7 +225,7 @@ void SolvingRateDialog::slotOk()
_i = 0;
_success = 0;
_progress->setValue(0);
- QTimer::singleShot(0, this, SLOT(step()));
+ TQTimer::singleShot(0, this, TQT_SLOT(step()));
}
void SolvingRateDialog::step()
@@ -245,5 +245,5 @@ void SolvingRateDialog::solvingDone(bool success)
_label->setText(i18n("Success rate: %1%")
.arg(_success * 100.0 / _i, 0, 'f', 3));
_progress->advance(1);
- QTimer::singleShot(0, this, SLOT(step()));
+ TQTimer::singleShot(0, this, TQT_SLOT(step()));
}