summaryrefslogtreecommitdiffstats
path: root/kolf/ball.h
diff options
context:
space:
mode:
Diffstat (limited to 'kolf/ball.h')
-rw-r--r--kolf/ball.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/kolf/ball.h b/kolf/ball.h
index 098d82ef..a4252ec5 100644
--- a/kolf/ball.h
+++ b/kolf/ball.h
@@ -1,8 +1,8 @@
#ifndef KOLF_BALL_H
#define KOLF_BALL_H
-#include <qcanvas.h>
-#include <qcolor.h>
+#include <tqcanvas.h>
+#include <tqcolor.h>
#include <math.h>
@@ -11,10 +11,10 @@
enum BallState { Rolling = 0, Stopped, Holed };
-class Ball : public QCanvasEllipse, public CanvasItem
+class Ball : public TQCanvasEllipse, public CanvasItem
{
public:
- Ball(QCanvas *canvas);
+ Ball(TQCanvas *canvas);
virtual void aboutToDie();
BallState currentState();
@@ -32,8 +32,8 @@ public:
BallState curState() const { return state; }
void setState(BallState newState);
- QColor color() const { return m_color; }
- void setColor(QColor color) { m_color = color; setBrush(color); }
+ TQColor color() const { return m_color; }
+ void setColor(TQColor color) { m_color = color; setBrush(color); }
void setMoved(bool yes) { m_moved = yes; }
bool moved() const { return m_moved; }
@@ -69,13 +69,13 @@ public:
virtual void showInfo();
virtual void hideInfo();
- virtual void setName(const QString &);
- virtual void setCanvas(QCanvas *c);
+ virtual void setName(const TQString &);
+ virtual void setCanvas(TQCanvas *c);
virtual void setVisible(bool yes);
private:
BallState state;
- QColor m_color;
+ TQColor m_color;
long int collisionId;
double frictionMultiplier;
@@ -95,9 +95,9 @@ private:
bool m_collisionLock;
bool m_doDetect;
- QCanvasItemList m_list;
+ TQCanvasItemList m_list;
- QCanvasText *label;
+ TQCanvasText *label;
};