diff options
Diffstat (limited to 'klines/ballpainter.cpp')
-rw-r--r-- | klines/ballpainter.cpp | 28 |
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; |