summaryrefslogtreecommitdiffstats
path: root/konquest/planet_info.cc
diff options
context:
space:
mode:
Diffstat (limited to 'konquest/planet_info.cc')
-rw-r--r--konquest/planet_info.cc36
1 files changed, 18 insertions, 18 deletions
diff --git a/konquest/planet_info.cc b/konquest/planet_info.cc
index 4c1d4be1..1d178493 100644
--- a/konquest/planet_info.cc
+++ b/konquest/planet_info.cc
@@ -1,7 +1,7 @@
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpalette.h>
-#include <qcolor.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpalette.h>
+#include <tqcolor.h>
#include <kapplication.h>
#include <klocale.h>
@@ -9,25 +9,25 @@
#include <kglobal.h>
#include "planet_info.moc"
-PlanetInfo::PlanetInfo( QWidget *parent, QPalette palette )
- : QFrame( parent )
+PlanetInfo::PlanetInfo( TQWidget *parent, TQPalette palette )
+ : TQFrame( parent )
{
setPalette( palette );
- name = new QLabel( this );
+ name = new TQLabel( this );
name->setMinimumWidth( 100 );
- owner = new QLabel( this );
+ owner = new TQLabel( this );
owner->setMinimumWidth( 100 );
- ships = new QLabel( this );
+ ships = new TQLabel( this );
ships->setMinimumWidth( 100 );
- production = new QLabel( this );
+ production = new TQLabel( this );
production->setMinimumWidth( 100 );
- kill_percent = new QLabel( this );
+ kill_percent = new TQLabel( this );
kill_percent->setMinimumWidth( 100 );
clearDisplay();
- QVBoxLayout *layout1 = new QVBoxLayout( this );
+ TQVBoxLayout *layout1 = new TQVBoxLayout( this );
layout1->addWidget( name );
layout1->addWidget( owner );
@@ -47,7 +47,7 @@ PlanetInfo::~PlanetInfo()
emptyPlanetInfoList();
}
-QSize PlanetInfo::sizeHint() const
+TQSize PlanetInfo::sizeHint() const
{
int height;
@@ -57,7 +57,7 @@ QSize PlanetInfo::sizeHint() const
production->sizeHint().height()+
kill_percent->sizeHint().height();
- return QSize( 100, height );
+ return TQSize( 100, height );
}
void PlanetInfo::setPlanetList( PlanetList &newPlanets )
@@ -90,7 +90,7 @@ void PlanetInfo::rescanPlanets()
void PlanetInfo::clearDisplay()
{
- QString temp;
+ TQString temp;
temp = "<qt>" + i18n("Planet name: ");
name->setText( temp );
@@ -124,14 +124,14 @@ void PlanetInfo::showPlanet( Planet *planet )
if( planet->getPlayer()->isNeutral() ) {
clearDisplay();
- QString temp;
+ TQString temp;
temp = "<qt>" + i18n("Planet name: %1").arg(planet->getName());
name->setText( temp );
return;
}
- QString nameToShow = planet->getName();
+ TQString nameToShow = planet->getName();
PlanetInfoListIterator itr( planet_stats );
planet_info_buffer *p;
@@ -139,7 +139,7 @@ void PlanetInfo::showPlanet( Planet *planet )
while( (p = itr()) ) {
if( p->planet == planet ) {
- QString temp;
+ TQString temp;
temp = "<qt>" + i18n("Planet name: %1").arg(p->planet->getName());
name->setText( temp );