summaryrefslogtreecommitdiffstats
path: root/src/effectwidget.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 06:50:25 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 06:50:25 +0000
commita7dcba0bccd505f672310722d7205c60f57c9c17 (patch)
treeb78db5f5c2c96cad7a2c18feb8aebdf4c44fa879 /src/effectwidget.h
parent63dc78a1d3758ddb8a4d1f7fa947969141fe6a15 (diff)
downloadksplash-engine-moodin-a7dcba0bccd505f672310722d7205c60f57c9c17.tar.gz
ksplash-engine-moodin-a7dcba0bccd505f672310722d7205c60f57c9c17.zip
TQt4 port ksplash-engine-moodin
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ksplash-engine-moodin@1238987 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/effectwidget.h')
-rw-r--r--src/effectwidget.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/src/effectwidget.h b/src/effectwidget.h
index 57df6bf..813e69b 100644
--- a/src/effectwidget.h
+++ b/src/effectwidget.h
@@ -13,25 +13,26 @@
#ifndef FADEWIDGET_H
#define FADEWIDGET_H
-#include <qwidget.h>
-#include <qptrlist.h>
-#include <qpixmap.h>
-#include <qimage.h>
+#include <tqwidget.h>
+#include <tqptrlist.h>
+#include <tqpixmap.h>
+#include <tqimage.h>
#include <kimageeffect.h>
-class QTimer;
+class TQTimer;
-class EffectWidget : public QWidget
+class EffectWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- EffectWidget(QWidget *parent = 0,const char *name = 0);
+ EffectWidget(TQWidget *tqparent = 0,const char *name = 0);
- static void setBackgroundImage(QImage *image) { bgImage = image; }
+ static void setBackgroundImage(TQImage *image) { bgImage = image; }
- void setImage(QImage *i);
+ void setImage(TQImage *i);
void setDelay(int delayInMS);
void setLoop(bool loop);
void setSteps(int steps);
@@ -41,9 +42,9 @@ class EffectWidget : public QWidget
void stop();
void rewind();
- void paintEvent(QPaintEvent *);
- void resizeEvent(QResizeEvent *);
- void moveEvent(QMoveEvent *);
+ void paintEvent(TQPaintEvent *);
+ void resizeEvent(TQResizeEvent *);
+ void moveEvent(TQMoveEvent *);
void updateCache();
@@ -51,11 +52,11 @@ class EffectWidget : public QWidget
void timerTick();
private:
- static QImage *bgImage;
+ static TQImage *bgImage;
- QTimer *timer;
- QImage *image;
- QImage background;
+ TQTimer *timer;
+ TQImage *image;
+ TQImage background;
unsigned int delayMS;
unsigned int currentStep;
unsigned int totalSteps;