summaryrefslogtreecommitdiffstats
path: root/konquest/fleetdlg.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /konquest/fleetdlg.cc
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz
tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konquest/fleetdlg.cc')
-rw-r--r--konquest/fleetdlg.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/konquest/fleetdlg.cc b/konquest/fleetdlg.cc
index 0117f74d..1c7e3fdf 100644
--- a/konquest/fleetdlg.cc
+++ b/konquest/fleetdlg.cc
@@ -1,4 +1,4 @@
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kapplication.h>
#include <klocale.h>
#include <math.h>
@@ -8,11 +8,11 @@
#include "fleetdlg.h"
-FleetDlgListViewItem::FleetDlgListViewItem(QListView *parent, QString s1, QString s2, QString s3, QString s4, QString s5) : QListViewItem(parent, s1, s2, s3, s4, s5)
+FleetDlgListViewItem::FleetDlgListViewItem(TQListView *parent, TQString s1, TQString s2, TQString s3, TQString s4, TQString s5) : TQListViewItem(parent, s1, s2, s3, s4, s5)
{
}
-int FleetDlgListViewItem::compare(QListViewItem *i, int col, bool) const
+int FleetDlgListViewItem::compare(TQListViewItem *i, int col, bool) const
{
if (col == 1)
{
@@ -35,8 +35,8 @@ int FleetDlgListViewItem::compare(QListViewItem *i, int col, bool) const
}
-FleetDlg::FleetDlg( QWidget *parent, AttackFleetList *fleets )
- : QDialog(parent, "FleetDlg", true ), fleetList(fleets)
+FleetDlg::FleetDlg( TQWidget *parent, AttackFleetList *fleets )
+ : TQDialog(parent, "FleetDlg", true ), fleetList(fleets)
{
setCaption( kapp->makeStdCaption(i18n("Fleet Overview")) );
@@ -52,8 +52,8 @@ FleetDlg::FleetDlg( QWidget *parent, AttackFleetList *fleets )
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( fleetTable, 1 );
layout1->addLayout( layout2 );
@@ -62,7 +62,7 @@ FleetDlg::FleetDlg( QWidget *parent, AttackFleetList *fleets )
layout2->addWidget( okButton );
layout2->addStretch( 2 );
- connect( okButton, SIGNAL(clicked()), this, SLOT(accept()) );
+ connect( okButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept()) );
init();
@@ -79,10 +79,10 @@ FleetDlg::init()
while( (curFleet = nextFleet())) {
fleetNumber++;
new FleetDlgListViewItem(fleetTable,
- QString("%1").arg(fleetNumber),
+ TQString("%1").arg(fleetNumber),
curFleet->destination->getName(),
- QString("%1").arg(curFleet->getShipCount()),
- QString("%1").arg(KGlobal::locale()->formatNumber(curFleet->killPercentage, 3)),
- QString("%1").arg((int)ceil(curFleet->arrivalTurn)));
+ TQString("%1").arg(curFleet->getShipCount()),
+ TQString("%1").arg(KGlobal::locale()->formatNumber(curFleet->killPercentage, 3)),
+ TQString("%1").arg((int)ceil(curFleet->arrivalTurn)));
}
}