summaryrefslogtreecommitdiffstats
path: root/konquest/scoredlg.cc
diff options
context:
space:
mode:
Diffstat (limited to 'konquest/scoredlg.cc')
-rw-r--r--konquest/scoredlg.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/konquest/scoredlg.cc b/konquest/scoredlg.cc
index 685ba9c5..7b7eac25 100644
--- a/konquest/scoredlg.cc
+++ b/konquest/scoredlg.cc
@@ -1,4 +1,4 @@
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kapplication.h>
#include <klocale.h>
#include <kpushbutton.h>
@@ -6,11 +6,11 @@
#include "scoredlg.h"
-ScoreDlgListViewItem::ScoreDlgListViewItem(QListView *parent, QString s1, QString s2, QString s3, QString s4, QString s5, QString s6) : QListViewItem(parent, s1, s2, s3, s4, s5, s6)
+ScoreDlgListViewItem::ScoreDlgListViewItem(TQListView *parent, TQString s1, TQString s2, TQString s3, TQString s4, TQString s5, TQString s6) : TQListViewItem(parent, s1, s2, s3, s4, s5, s6)
{
}
-int ScoreDlgListViewItem::compare(QListViewItem *i, int col, bool) const
+int ScoreDlgListViewItem::compare(TQListViewItem *i, int col, bool) const
{
if (col == 0)
{
@@ -27,8 +27,8 @@ int ScoreDlgListViewItem::compare(QListViewItem *i, int col, bool) const
}
-ScoreDlg::ScoreDlg( QWidget *parent, const QString& title, PlayerList *players )
- : QDialog(parent, "ScoreDlg", true ), plrList(players)
+ScoreDlg::ScoreDlg( TQWidget *parent, const TQString& title, PlayerList *players )
+ : TQDialog(parent, "ScoreDlg", true ), plrList(players)
{
setCaption( kapp->makeStdCaption(title) );
@@ -45,8 +45,8 @@ ScoreDlg::ScoreDlg( QWidget *parent, const QString& title, PlayerList *players )
okButton->setMinimumSize( okButton->sizeHint() );
okButton->setDefault(true);
- QVBoxLayout *layout1 = new QVBoxLayout( this );
- QHBoxLayout *layout2 = new QHBoxLayout;
+ TQVBoxLayout *layout1 = new TQVBoxLayout( this );
+ TQHBoxLayout *layout2 = new QHBoxLayout;
layout1->addWidget( scoreTable, 1 );
layout1->addLayout( layout2 );
@@ -55,7 +55,7 @@ ScoreDlg::ScoreDlg( QWidget *parent, const QString& title, PlayerList *players )
layout2->addWidget( okButton );
layout2->addStretch( 2 );
- connect( okButton, SIGNAL(clicked()), this, SLOT(accept()) );
+ connect( okButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept()) );
init();
@@ -71,10 +71,10 @@ ScoreDlg::init()
for( ;(curPlayer = itr()); )
new ScoreDlgListViewItem(scoreTable,
curPlayer->getName(),
- QString("%1").arg(curPlayer->getShipsBuilt()),
- QString("%1").arg(curPlayer->getPlanetsConquered()),
- QString("%1").arg(curPlayer->getFleetsLaunched()),
- QString("%1").arg(curPlayer->getEnemyFleetsDestroyed()),
- QString("%1").arg(curPlayer->getEnemyShipsDestroyed()));
+ 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()));
}