summaryrefslogtreecommitdiffstats
path: root/klines/ballpainter.cpp
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 /klines/ballpainter.cpp
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 'klines/ballpainter.cpp')
-rw-r--r--klines/ballpainter.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/klines/ballpainter.cpp b/klines/ballpainter.cpp
index 06380a6f..76156f11 100644
--- a/klines/ballpainter.cpp
+++ b/klines/ballpainter.cpp
@@ -17,10 +17,10 @@
#include <kapplication.h>
#include <kmessagebox.h>
//#include "shotcounter.h"
-#include <qpainter.h>
+#include <tqpainter.h>
#include "linesboard.h"
-//#include <qcolor.h>
-#include <qjpegio.h>
+//#include <tqcolor.h>
+#include <tqjpegio.h>
#include <kstandarddirs.h>
#include <klocale.h>
#include <stdlib.h>
@@ -37,7 +37,7 @@ int colorLinesArr[NCOLORS] =
BallPainter::BallPainter()
- : QObject(), backgroundPix(0)
+ : TQObject(), backgroundPix(0)
{
createPix();
}
@@ -59,11 +59,11 @@ void BallPainter::deletePix()
void BallPainter::createPix()
{
- backgroundPix = new QPixmap(
+ backgroundPix = new TQPixmap(
locate( "appdata", "field.jpg" ));
- QPixmap *balls = new QPixmap(
+ TQPixmap *balls = new TQPixmap(
locate( "appdata", "balls.jpg" ));
- QPixmap *fire = new QPixmap(
+ TQPixmap *fire = new TQPixmap(
locate( "appdata", "fire.jpg" ));
if (balls->isNull() ||backgroundPix->isNull() || fire->isNull() ) {
KMessageBox::error(0, i18n("Unable to find graphics. Check your installation."), i18n("Error"));
@@ -75,8 +75,8 @@ void BallPainter::createPix()
{
for(int t=0; t<PIXTIME + FIREBALLS + BOOMBALLS + 1 ; t++)
{
- imgCash[c][t] = new QPixmap(CELLSIZE, CELLSIZE);
- QPainter p(imgCash[c][t]);
+ imgCash[c][t] = new TQPixmap(CELLSIZE, CELLSIZE);
+ TQPainter p(imgCash[c][t]);
p.drawPixmap(0,0,(*backgroundPix),0,0,CELLSIZE,CELLSIZE);
p.drawPixmap(1,1,(*balls),t*PIXSIZE,c*PIXSIZE,PIXSIZE,PIXSIZE);
if (Prefs::numberedBalls() && (t == NORMALBALL))
@@ -85,17 +85,17 @@ void BallPainter::createPix()
p.setPen(Qt::black);
else
p.setPen(Qt::white);
- QString tmp;
+ TQString tmp;
tmp.setNum(c+1);
- p.drawText(QRect(0,0,CELLSIZE,CELLSIZE), Qt::AlignCenter, tmp);
+ p.drawText(TQRect(0,0,CELLSIZE,CELLSIZE), Qt::AlignCenter, tmp);
}
}
}
for(int t=0; t < FIREPIX ; t++)
{
- firePix[t] = new QPixmap(CELLSIZE, CELLSIZE);
- QPainter p(firePix[t]);
+ firePix[t] = new TQPixmap(CELLSIZE, CELLSIZE);
+ TQPainter p(firePix[t]);
p.drawPixmap(0,0,(*backgroundPix),0,0,CELLSIZE,CELLSIZE);
p.drawPixmap(1,1,(*fire),t*PIXSIZE,0,PIXSIZE,PIXSIZE);
}
@@ -104,7 +104,7 @@ void BallPainter::createPix()
}
-QPixmap BallPainter::GetBall(int color, int animstep, int panim)
+TQPixmap BallPainter::GetBall(int color, int animstep, int panim)
{
// return backgroundPix;