From 97d1732e257f8700488d7ca1660ae7eba8fc6065 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:47:36 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- libksirtet/base/field.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libksirtet/base/field.cpp') diff --git a/libksirtet/base/field.cpp b/libksirtet/base/field.cpp index 5f7cf10d..dde0ef0a 100644 --- a/libksirtet/base/field.cpp +++ b/libksirtet/base/field.cpp @@ -1,7 +1,7 @@ #include "field.h" #include -#include +#include #include #include @@ -41,8 +41,8 @@ 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)").tqarg(name) - : (multiplayer ? i18n("%1\n(Human player)").tqarg(name) + TQString text = (AI ? i18n("%1\n(AI player)").arg(name) + : (multiplayer ? i18n("%1\n(Human player)").arg(name) : TQString())); if ( first && !server ) text += i18n("\nWaiting for server"); setMessage(text, (first && server ? StartButton : NoButton)); @@ -81,7 +81,7 @@ void BaseField::setMessage(const TQString &label, ButtonType type) TQString str = (isArcade() ? i18n("Arcade game") + '\n' : TQString()) + label; _label = new TQLabel(str, board); - _label->tqsetAlignment(TQt::AlignCenter); + _label->setAlignment(TQt::AlignCenter); _label->setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); _boardLayout->addWidget(_label, 0, TQt::AlignCenter); _label->show(); @@ -128,7 +128,7 @@ void BaseField::stop(bool gameover) if ( board->arcadeStage()==bfactory->bbi.nbArcadeStages ) msg = i18n("The End"); else { - msg = i18n("Stage #%1 done").tqarg(board->arcadeStage()); + msg = i18n("Stage #%1 done").arg(board->arcadeStage()); button = ProceedButton; } } -- cgit v1.2.3