summaryrefslogtreecommitdiffstats
path: root/konquest/newgamedlg.cc
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 /konquest/newgamedlg.cc
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 'konquest/newgamedlg.cc')
-rw-r--r--konquest/newgamedlg.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/konquest/newgamedlg.cc b/konquest/newgamedlg.cc
index 232e6415..fffe17d4 100644
--- a/konquest/newgamedlg.cc
+++ b/konquest/newgamedlg.cc
@@ -25,9 +25,9 @@
New Game Dialog Members
************************************************************************/
-NewGameDlg::NewGameDlg( TQWidget *parent, Map *pmap, PlayerList *players,
+NewGameDlg::NewGameDlg( TQWidget *tqparent, Map *pmap, PlayerList *players,
Player *neutralPlayer, PlanetList *planets )
- : KDialogBase( parent, "new_game_dialog", true, i18n("Start New Game"),
+ : KDialogBase( tqparent, "new_game_dialog", true, i18n("Start New Game"),
KDialogBase::Ok|KDialogBase::Default|KDialogBase::Cancel, KDialogBase::NoDefault, true ),
plrList(players), plnetList(planets), neutral(neutralPlayer),
map(pmap)
@@ -96,7 +96,7 @@ NewGameDlg::init()
for( TQListViewItem *item = w->listPlayers->firstChild();
item; item = item->nextSibling(), plrNum++ )
{
- TQString key = TQString("Player_%1").arg(plrNum);
+ TQString key = TQString("Player_%1").tqarg(plrNum);
TQString playerName = config->readEntry(key);
if (playerName.isEmpty())
@@ -151,7 +151,7 @@ NewGameDlg::slotAddPlayer()
item->setText(1, i18n("Human Player"));
item->setText(0, playerName);
- w->newPlayer->setText(TQString::null);
+ w->newPlayer->setText(TQString());
updateMiniMap();
updateLabels();
@@ -184,7 +184,7 @@ NewGameDlg::setPlayerCount(int playerCount)
while(w->listPlayers->childCount() < playerCount)
{
- TQString playerName = i18n("Generated AI player name", "Comp%1").arg(i+1);
+ TQString playerName = i18n("Generated AI player name", "Comp%1").tqarg(i+1);
TQPixmap pm(16,16);
TQColor color(PlayerColors[i]);
pm.fill(color);
@@ -229,9 +229,9 @@ NewGameDlg::turns()
void
NewGameDlg::updateLabels()
{
- w->labelPlayers->setText(i18n("Number of &players: %1").arg(w->sliderPlayers->value()));
- w->labelPlanets->setText(i18n("Number of neutral p&lanets: %1").arg(w->sliderPlanets->value()));
- w->labelTurns->setText(i18n("Number of &turns: %1").arg(w->sliderTurns->value()));
+ w->labelPlayers->setText(i18n("Number of &players: %1").tqarg(w->sliderPlayers->value()));
+ w->labelPlanets->setText(i18n("Number of neutral p&lanets: %1").tqarg(w->sliderPlanets->value()));
+ w->labelTurns->setText(i18n("Number of &turns: %1").tqarg(w->sliderTurns->value()));
}
void
@@ -269,7 +269,7 @@ NewGameDlg::save()
for( TQListViewItem *item = w->listPlayers->firstChild();
item; item = item->nextSibling() )
{
- TQString key = TQString("Player_%1").arg(plrNum);
+ TQString key = TQString("Player_%1").tqarg(plrNum);
TQString playerName = item->text(0);
bool ai = (item->text(2) == "A");
if (ai)