summaryrefslogtreecommitdiffstats
path: root/konquest/scoredlg.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/scoredlg.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/scoredlg.cc')
-rw-r--r--konquest/scoredlg.cc34
1 files changed, 17 insertions, 17 deletions
diff --git a/konquest/scoredlg.cc b/konquest/scoredlg.cc
index fee4a404..3400032e 100644
--- a/konquest/scoredlg.cc
+++ b/konquest/scoredlg.cc
@@ -6,7 +6,7 @@
#include "scoredlg.h"
-ScoreDlgListViewItem::ScoreDlgListViewItem(TQListView *parent, TQString s1, TQString s2, TQString s3, TQString s4, TQString s5, TQString s6) : TQListViewItem(parent, s1, s2, s3, s4, s5, s6)
+ScoreDlgListViewItem::ScoreDlgListViewItem(TQListView *tqparent, TQString s1, TQString s2, TQString s3, TQString s4, TQString s5, TQString s6) : TQListViewItem(tqparent, s1, s2, s3, s4, s5, s6)
{
}
@@ -27,8 +27,8 @@ int ScoreDlgListViewItem::compare(TQListViewItem *i, int col, bool) const
}
-ScoreDlg::ScoreDlg( TQWidget *parent, const TQString& title, PlayerList *players )
- : TQDialog(parent, "ScoreDlg", true ), plrList(players)
+ScoreDlg::ScoreDlg( TQWidget *tqparent, const TQString& title, PlayerList *players )
+ : TQDialog(tqparent, "ScoreDlg", true ), plrList(players)
{
setCaption( kapp->makeStdCaption(title) );
@@ -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()));
}