summaryrefslogtreecommitdiffstats
path: root/konquest/planet_info.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/planet_info.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/planet_info.cc')
-rw-r--r--konquest/planet_info.cc46
1 files changed, 23 insertions, 23 deletions
diff --git a/konquest/planet_info.cc b/konquest/planet_info.cc
index 1d178493..a9f03034 100644
--- a/konquest/planet_info.cc
+++ b/konquest/planet_info.cc
@@ -9,8 +9,8 @@
#include <kglobal.h>
#include "planet_info.moc"
-PlanetInfo::PlanetInfo( TQWidget *parent, TQPalette palette )
- : TQFrame( parent )
+PlanetInfo::PlanetInfo( TQWidget *tqparent, TQPalette palette )
+ : TQFrame( tqparent )
{
setPalette( palette );
@@ -27,19 +27,19 @@ PlanetInfo::PlanetInfo( TQWidget *parent, TQPalette palette )
clearDisplay();
- TQVBoxLayout *layout1 = new TQVBoxLayout( this );
+ TQVBoxLayout *tqlayout1 = new TQVBoxLayout( this );
- layout1->addWidget( name );
- layout1->addWidget( owner );
- layout1->addWidget( ships );
- layout1->addWidget( production );
- layout1->addWidget( kill_percent );
- layout1->addStretch(1);
+ tqlayout1->addWidget( name );
+ tqlayout1->addWidget( owner );
+ tqlayout1->addWidget( ships );
+ tqlayout1->addWidget( production );
+ tqlayout1->addWidget( kill_percent );
+ tqlayout1->addStretch(1);
setMouseTracking( true );
- setMinimumSize( sizeHint() );
- setMaximumHeight( sizeHint().height() );
+ setMinimumSize( tqsizeHint() );
+ setMaximumHeight( tqsizeHint().height() );
}
PlanetInfo::~PlanetInfo()
@@ -47,15 +47,15 @@ PlanetInfo::~PlanetInfo()
emptyPlanetInfoList();
}
-TQSize PlanetInfo::sizeHint() const
+TQSize PlanetInfo::tqsizeHint() const
{
int height;
- height = name->sizeHint().height() +
- owner->sizeHint().height() +
- ships->sizeHint().height() +
- production->sizeHint().height()+
- kill_percent->sizeHint().height();
+ height = name->tqsizeHint().height() +
+ owner->tqsizeHint().height() +
+ ships->tqsizeHint().height() +
+ production->tqsizeHint().height()+
+ kill_percent->tqsizeHint().height();
return TQSize( 100, height );
}
@@ -126,7 +126,7 @@ void PlanetInfo::showPlanet( Planet *planet )
TQString temp;
- temp = "<qt>" + i18n("Planet name: %1").arg(planet->getName());
+ temp = "<qt>" + i18n("Planet name: %1").tqarg(planet->getName());
name->setText( temp );
return;
}
@@ -141,19 +141,19 @@ void PlanetInfo::showPlanet( Planet *planet )
TQString temp;
- temp = "<qt>" + i18n("Planet name: %1").arg(p->planet->getName());
+ temp = "<qt>" + i18n("Planet name: %1").tqarg(p->planet->getName());
name->setText( temp );
- temp = "<qt>" + i18n("Owner: %1").arg(p->planet->getPlayer()->getColoredName());
+ temp = "<qt>" + i18n("Owner: %1").tqarg(p->planet->getPlayer()->getColoredName());
owner->setText( temp );
- temp = "<qt>" + i18n("Ships: %1").arg( KGlobal::locale()->formatNumber(p->ships, 0) );
+ temp = "<qt>" + i18n("Ships: %1").tqarg( KGlobal::locale()->formatNumber(p->ships, 0) );
ships->setText( temp );
- temp = "<qt>" + i18n("Production: %1").arg( KGlobal::locale()->formatNumber(p->production, 0) );
+ temp = "<qt>" + i18n("Production: %1").tqarg( KGlobal::locale()->formatNumber(p->production, 0) );
production->setText( temp );
- temp = "<qt>" + i18n("Kill percent: %1").arg( KGlobal::locale()->formatNumber(p->killRate, 3) );
+ temp = "<qt>" + i18n("Kill percent: %1").tqarg( KGlobal::locale()->formatNumber(p->killRate, 3) );
kill_percent->setText( temp );
}
}