summaryrefslogtreecommitdiffstats
path: root/kscreensaver/kdesavers/firesaver.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-14 05:14:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-14 05:14:51 +0000
commit1d077caf68127ab1a5518df84cc5592a1b47a965 (patch)
tree9729a338937930e9014ccbd70296f3313d6dc2cc /kscreensaver/kdesavers/firesaver.cpp
parent771e57c60b52ff27c4d92cddc8e6bfc0b8dafd1a (diff)
downloadtdeartwork-1d077caf68127ab1a5518df84cc5592a1b47a965.tar.gz
tdeartwork-1d077caf68127ab1a5518df84cc5592a1b47a965.zip
TQt4 port kdeartwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeartwork@1246991 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kscreensaver/kdesavers/firesaver.cpp')
-rw-r--r--kscreensaver/kdesavers/firesaver.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kscreensaver/kdesavers/firesaver.cpp b/kscreensaver/kdesavers/firesaver.cpp
index c8b605fc..3695acb8 100644
--- a/kscreensaver/kdesavers/firesaver.cpp
+++ b/kscreensaver/kdesavers/firesaver.cpp
@@ -479,7 +479,7 @@ void KFireSaver :: paintGL ()
glBegin( GL_QUADS );
flashedScreen = true;
}
- // generating children and removing parent
+ // generating tqchildren and removing parent
int elementIndex = particleList.at();
explodeFirework(particle);
particleList.remove(elementIndex);
@@ -907,8 +907,8 @@ void KFireSaver :: burnLogo(TQImage * image)
{
for (int x=0 ; x<imageW ; x+=step)
{
- QRgb pixel = image->pixel(x,y);
- if ( qAlpha(pixel) < 250 )
+ TQRgb pixel = image->pixel(x,y);
+ if ( tqAlpha(pixel) < 250 )
continue;
//if ( DRAND > 0.9 )
// continue;
@@ -924,9 +924,9 @@ void KFireSaver :: burnLogo(TQImage * image)
particle->xspeed = xI * speed + speedXOffs;
particle->zspeed = yI * speed + speedYOffs;
- particle->colour[0] = qRed(pixel) / 255.0f;
- particle->colour[1] = qGreen(pixel) / 255.0f;
- particle->colour[2] = qBlue(pixel) / 255.0f;
+ particle->colour[0] = tqRed(pixel) / 255.0f;
+ particle->colour[1] = tqGreen(pixel) / 255.0f;
+ particle->colour[2] = tqBlue(pixel) / 255.0f;
particleList.append(particle);
}
@@ -1019,7 +1019,7 @@ void KFireSaver :: readConfig ()
parameters.particleSize = 5;
if ( parameters.enableBottomFire = config.readBoolEntry( "enable-BottomFire", true ) )
{
- TQColor blue = Qt::darkBlue;
+ TQColor blue = TQt::darkBlue;
parameters.bottomFireColor = config.readColorEntry( "BottomFireColor", &blue );
}
parameters.enableSound = config.readBoolEntry( "enable-Sounds", false );