summaryrefslogtreecommitdiffstats
path: root/kolf/ball.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/ball.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/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;
};