From 576eb4299a00bc053db35414406f46372a0f70f2 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:42:31 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kspaceduel/playerinfo.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'kspaceduel/playerinfo.cpp') diff --git a/kspaceduel/playerinfo.cpp b/kspaceduel/playerinfo.cpp index 1cd2cd31..2e1ef91d 100644 --- a/kspaceduel/playerinfo.cpp +++ b/kspaceduel/playerinfo.cpp @@ -1,29 +1,29 @@ #include "playerinfo.h" -#include -#include +#include +#include #include #include -PlayerInfo::PlayerInfo(int pnr,QWidget *parent,const char *name) - :QFrame(parent,name), +PlayerInfo::PlayerInfo(int pnr,TQWidget *parent,const char *name) + :TQFrame(parent,name), lplayer(this),lenergy(this),lwins(this), hitpoints(2,this),energy(2,this),wins(2,this) { setFixedWidth(45); setFrameStyle(Panel|Raised); - QString str; + TQString str; int i; lplayer.setFrameStyle(Panel|Sunken); lplayer.setMargin(0); - QToolTip::add(&lplayer,i18n("Hit points")); + TQToolTip::add(&lplayer,i18n("Hit points")); lenergy.setFrameStyle(Panel|Sunken); lenergy.setMargin(0); - QToolTip::add(&lenergy,i18n("Energy")); + TQToolTip::add(&lenergy,i18n("Energy")); lwins.setFrameStyle(Panel|Sunken); lwins.setMargin(0); - QToolTip::add(&lwins,i18n("Wins")); + TQToolTip::add(&lwins,i18n("Wins")); lplayer.setGeometry(5,5,35,35); lplayer.setIndent(0); @@ -34,26 +34,26 @@ PlayerInfo::PlayerInfo(int pnr,QWidget *parent,const char *name) for(i=0;i<4;i++) { - str = QString::fromLatin1("sprites/playerinfo/ship%1%2.pnm") + str = TQString::fromLatin1("sprites/playerinfo/ship%1%2.pnm") .arg(pnr+1) .arg(i); - pix[i]=new QPixmap(locate("appdata", str)); + pix[i]=new TQPixmap(locate("appdata", str)); } lplayer.setPixmap(*pix[0]); currentPixmap=0; - lenergy.setPixmap(QPixmap(locate("appdata", "sprites/playerinfo/energy.pnm"))); - lwins.setPixmap(QPixmap(locate("appdata", "sprites/playerinfo/win.pnm"))); + lenergy.setPixmap(TQPixmap(locate("appdata", "sprites/playerinfo/energy.pnm"))); + lwins.setPixmap(TQPixmap(locate("appdata", "sprites/playerinfo/win.pnm"))); hitpoints.setGeometry(9,45,26,26); energy.setGeometry(9,120,26,26); wins.setGeometry(9,195,26,26); hitpoints.setFrameStyle(NoFrame); - QToolTip::add(&hitpoints,i18n("Hit points")); + TQToolTip::add(&hitpoints,i18n("Hit points")); energy.setFrameStyle(NoFrame); - QToolTip::add(&energy,i18n("Energy")); + TQToolTip::add(&energy,i18n("Energy")); wins.setFrameStyle(NoFrame); - QToolTip::add(&wins,i18n("Wins")); + TQToolTip::add(&wins,i18n("Wins")); } void PlayerInfo::setHitpoints(int h) -- cgit v1.2.1