diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:47:36 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:47:36 -0600 |
commit | 97d1732e257f8700488d7ca1660ae7eba8fc6065 (patch) | |
tree | 4c6397ed2c1dd6f7c3354b5b87f313547d92a35f /konquest/newgamedlg.cc | |
parent | 9c27a1a03e02fd53aedc1a182444b35fd8e14967 (diff) | |
download | tdegames-97d1732e257f8700488d7ca1660ae7eba8fc6065.tar.gz tdegames-97d1732e257f8700488d7ca1660ae7eba8fc6065.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'konquest/newgamedlg.cc')
-rw-r--r-- | konquest/newgamedlg.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/konquest/newgamedlg.cc b/konquest/newgamedlg.cc index a3d2718b..4cc9323f 100644 --- a/konquest/newgamedlg.cc +++ b/konquest/newgamedlg.cc @@ -1,5 +1,5 @@ #include <tqheader.h> -#include <tqlayout.h> +#include <layout.h> #include <tqcolor.h> #include <tqlabel.h> #include <tqslider.h> @@ -96,7 +96,7 @@ NewGameDlg::init() for( TQListViewItem *item = w->listPlayers->firstChild(); item; item = item->nextSibling(), plrNum++ ) { - TQString key = TQString("Player_%1").tqarg(plrNum); + TQString key = TQString("Player_%1").arg(plrNum); TQString playerName = config->readEntry(key); if (playerName.isEmpty()) @@ -184,7 +184,7 @@ NewGameDlg::setPlayerCount(int playerCount) while(w->listPlayers->childCount() < playerCount) { - TQString playerName = i18n("Generated AI player name", "Comp%1").tqarg(i+1); + TQString playerName = i18n("Generated AI player name", "Comp%1").arg(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").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())); + 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())); } void @@ -269,7 +269,7 @@ NewGameDlg::save() for( TQListViewItem *item = w->listPlayers->firstChild(); item; item = item->nextSibling() ) { - TQString key = TQString("Player_%1").tqarg(plrNum); + TQString key = TQString("Player_%1").arg(plrNum); TQString playerName = item->text(0); bool ai = (item->text(2) == "A"); if (ai) |