summaryrefslogtreecommitdiffstats
path: root/libksirtet/base/field.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libksirtet/base/field.cpp')
-rw-r--r--libksirtet/base/field.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/libksirtet/base/field.cpp b/libksirtet/base/field.cpp
index fae20266..6e35faf5 100644
--- a/libksirtet/base/field.cpp
+++ b/libksirtet/base/field.cpp
@@ -41,9 +41,9 @@ void BaseField::init(bool AI, bool multiplayer, bool server, bool first,
_flags.multiplayer = multiplayer;
_flags.server = server;
_flags.first = first;
- TQString text = (AI ? i18n("%1\n(AI player)").arg(name)
- : (multiplayer ? i18n("%1\n(Human player)").arg(name)
- : TQString::null));
+ TQString text = (AI ? i18n("%1\n(AI player)").tqarg(name)
+ : (multiplayer ? i18n("%1\n(Human player)").tqarg(name)
+ : TQString()));
if ( first && !server ) text += i18n("\nWaiting for server");
setMessage(text, (first && server ? StartButton : NoButton));
showScore->resetColor();
@@ -79,11 +79,11 @@ void BaseField::setMessage(const TQString &label, ButtonType type)
_boardLayout->addStretch(3);
if ( !label.isEmpty() ) {
TQString str = (isArcade() ? i18n("Arcade game") + '\n'
- : TQString::null) + label;
+ : TQString()) + label;
_label = new TQLabel(str, board);
- _label->setAlignment(Qt::AlignCenter);
+ _label->tqsetAlignment(TQt::AlignCenter);
_label->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
- _boardLayout->addWidget(_label, 0, Qt::AlignCenter);
+ _boardLayout->addWidget(_label, 0, TQt::AlignCenter);
_label->show();
}
_boardLayout->addStretch(1);
@@ -93,8 +93,8 @@ void BaseField::setMessage(const TQString &label, ButtonType type)
const char *slot = (type==ResumeButton ? TQT_SLOT(pause())
: TQT_SLOT(start()));
_button->connect(_button, TQT_SIGNAL(clicked()),
- _widget->parent(), slot);
- _boardLayout->addWidget(_button, 0, Qt::AlignCenter);
+ _widget->tqparent(), slot);
+ _boardLayout->addWidget(_button, 0, TQt::AlignCenter);
_button->show();
}
_boardLayout->addStretch(3);
@@ -123,22 +123,22 @@ void BaseField::stop(bool gameover)
{
board->stop();
ButtonType button = StartButton;
- TQString msg = (gameover ? i18n("Game over") : TQString::null);
+ TQString msg = (gameover ? i18n("Game over") : TQString());
if ( board->isArcade() && board->arcadeStageDone() ) {
if ( board->arcadeStage()==bfactory->bbi.nbArcadeStages )
msg = i18n("The End");
else {
- msg = i18n("Stage #%1 done").arg(board->arcadeStage());
+ msg = i18n("Stage #%1 done").tqarg(board->arcadeStage());
button = ProceedButton;
}
}
setMessage(msg, button);
}
-void BaseField::gameOver(const KExtHighscore::Score &score, TQWidget *parent)
+void BaseField::gameOver(const KExtHighscore::Score &score, TQWidget *tqparent)
{
- KNotifyClient::event(parent->winId(), "game over", i18n("Game Over"));
- KExtHighscore::submitScore(score, parent);
+ KNotifyClient::event(tqparent->winId(), "game over", i18n("Game Over"));
+ KExtHighscore::submitScore(score, tqparent);
}
void BaseField::scoreUpdated()
@@ -147,8 +147,8 @@ void BaseField::scoreUpdated()
if (_flags.multiplayer) return;
TQColor color;
- if ( _firstScore<currentScore() ) color = Qt::red;
- else if ( _lastScore<currentScore() ) color = Qt::blue;
+ if ( _firstScore<currentScore() ) color = TQt::red;
+ else if ( _lastScore<currentScore() ) color = TQt::blue;
showScore->setColor(color);
}