summaryrefslogtreecommitdiffstats
path: root/kolf/floater.h
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 /kolf/floater.h
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 'kolf/floater.h')
-rw-r--r--kolf/floater.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/kolf/floater.h b/kolf/floater.h
index 486f3bc0..c22a8084 100644
--- a/kolf/floater.h
+++ b/kolf/floater.h
@@ -9,7 +9,7 @@ class FloaterConfig : public BridgeConfig
Q_OBJECT
public:
- FloaterConfig(Floater *floater, QWidget *parent);
+ FloaterConfig(Floater *floater, TQWidget *parent);
private slots:
void speedChanged(int news);
@@ -21,10 +21,10 @@ private:
class FloaterGuide : public Wall
{
public:
- FloaterGuide(Floater *floater, QCanvas *canvas) : Wall(canvas) { this->floater = floater; almostDead = false; }
+ FloaterGuide(Floater *floater, TQCanvas *canvas) : Wall(canvas) { this->floater = floater; almostDead = false; }
virtual void setPoints(int xa, int ya, int xb, int yb);
virtual void moveBy(double dx, double dy);
- virtual Config *config(QWidget *parent);
+ virtual Config *config(TQWidget *parent);
virtual void aboutToDelete();
virtual void aboutToDie();
@@ -36,7 +36,7 @@ private:
class Floater : public Bridge
{
public:
- Floater(QRect rect, QCanvas *canvas);
+ Floater(TQRect rect, TQCanvas *canvas);
virtual bool collision(Ball *ball, long int id) { Bridge::collision(ball, id); return false; }
virtual void saveState(StateDB *db);
virtual void loadState(StateDB *db);
@@ -51,8 +51,8 @@ public:
virtual void editModeChanged(bool changed);
virtual bool moveable() const { return false; }
virtual void moveBy(double dx, double dy);
- virtual Config *config(QWidget *parent) { return new FloaterConfig(this, parent); }
- virtual QPtrList<QCanvasItem> moveableItems() const;
+ virtual Config *config(TQWidget *parent) { return new FloaterConfig(this, parent); }
+ virtual TQPtrList<TQCanvasItem> moveableItems() const;
virtual void advance(int phase);
void setSpeed(int news);
int curSpeed() const { return speed; }
@@ -64,18 +64,18 @@ private:
int speedfactor;
int speed;
FloaterGuide *wall;
- QPoint origin;
+ TQPoint origin;
Vector vector;
bool noUpdateZ;
bool haventMoved;
- QPoint firstPoint;
+ TQPoint firstPoint;
};
class FloaterObj : public Object
{
public:
FloaterObj() { m_name = i18n("Floater"); m__name = "floater"; }
- virtual QCanvasItem *newObject(QCanvas *canvas) { return new Floater(QRect(0, 0, 80, 40), canvas); }
+ virtual TQCanvasItem *newObject(TQCanvas *canvas) { return new Floater(TQRect(0, 0, 80, 40), canvas); }
};
#endif