summaryrefslogtreecommitdiffstats
path: root/konquest/scoredlg.cc
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:53 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:53 -0600
commit84ace1135cac57993b72fee7105b92def1638d32 (patch)
treeb8871eb76e3db4a062731b0ce7c99c24fac119e8 /konquest/scoredlg.cc
parent97d1732e257f8700488d7ca1660ae7eba8fc6065 (diff)
downloadtdegames-84ace1135cac57993b72fee7105b92def1638d32.tar.gz
tdegames-84ace1135cac57993b72fee7105b92def1638d32.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 97d1732e257f8700488d7ca1660ae7eba8fc6065.
Diffstat (limited to 'konquest/scoredlg.cc')
-rw-r--r--konquest/scoredlg.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/konquest/scoredlg.cc b/konquest/scoredlg.cc
index 794ec97a..843867bb 100644
--- a/konquest/scoredlg.cc
+++ b/konquest/scoredlg.cc
@@ -1,4 +1,4 @@
-#include <layout.h>
+#include <tqlayout.h>
#include <kapplication.h>
#include <klocale.h>
#include <kpushbutton.h>
@@ -39,21 +39,21 @@ ScoreDlg::ScoreDlg( TQWidget *parent, const TQString& title, PlayerList *players
scoreTable->addColumn(i18n("Fleets Launched"));
scoreTable->addColumn(i18n("Fleets Destroyed"));
scoreTable->addColumn(i18n("Ships Destroyed"));
- scoreTable->setMinimumSize( scoreTable->sizeHint() );
+ scoreTable->setMinimumSize( scoreTable->tqsizeHint() );
KPushButton *okButton = new KPushButton( KStdGuiItem::ok(), this );
- okButton->setMinimumSize( okButton->sizeHint() );
+ okButton->setMinimumSize( okButton->tqsizeHint() );
okButton->setDefault(true);
- TQVBoxLayout *layout1 = new TQVBoxLayout( this );
- TQHBoxLayout *layout2 = new TQHBoxLayout;
+ TQVBoxLayout *tqlayout1 = new TQVBoxLayout( this );
+ TQHBoxLayout *tqlayout2 = new TQHBoxLayout;
- layout1->addWidget( scoreTable, 1 );
- layout1->addLayout( layout2 );
+ tqlayout1->addWidget( scoreTable, 1 );
+ tqlayout1->addLayout( tqlayout2 );
- layout2->addStretch( 2 );
- layout2->addWidget( okButton );
- layout2->addStretch( 2 );
+ tqlayout2->addStretch( 2 );
+ tqlayout2->addWidget( okButton );
+ tqlayout2->addStretch( 2 );
connect( okButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept()) );
@@ -71,10 +71,10 @@ ScoreDlg::init()
for( ;(curPlayer = itr()); )
new ScoreDlgListViewItem(scoreTable,
curPlayer->getName(),
- TQString("%1").arg(curPlayer->getShipsBuilt()),
- TQString("%1").arg(curPlayer->getPlanetsConquered()),
- TQString("%1").arg(curPlayer->getFleetsLaunched()),
- TQString("%1").arg(curPlayer->getEnemyFleetsDestroyed()),
- TQString("%1").arg(curPlayer->getEnemyShipsDestroyed()));
+ TQString("%1").tqarg(curPlayer->getShipsBuilt()),
+ TQString("%1").tqarg(curPlayer->getPlanetsConquered()),
+ TQString("%1").tqarg(curPlayer->getFleetsLaunched()),
+ TQString("%1").tqarg(curPlayer->getEnemyFleetsDestroyed()),
+ TQString("%1").tqarg(curPlayer->getEnemyShipsDestroyed()));
}