summaryrefslogtreecommitdiffstats
path: root/kolf/canvasitem.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/canvasitem.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/canvasitem.h')
-rw-r--r--kolf/canvasitem.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/kolf/canvasitem.h b/kolf/canvasitem.h
index e7a37cb6..ed897d27 100644
--- a/kolf/canvasitem.h
+++ b/kolf/canvasitem.h
@@ -1,7 +1,7 @@
#ifndef KOLF_CANVASITEM_H
#define KOLF_CANVASITEM_H
-#include <qcanvas.h>
+#include <tqcanvas.h>
#include "config.h"
@@ -30,7 +30,7 @@ public:
/**
* called if the item is made by user while editing, with the item that was selected on the hole;
*/
- virtual void selectedItem(QCanvasItem * /*item*/) {}
+ virtual void selectedItem(TQCanvasItem * /*item*/) {}
/**
* called after the item is moved the very first time by the game
*/
@@ -107,7 +107,7 @@ public:
/**
* update your Z value (this is called by various things when perhaps the value should change) if this is called by a vStrut, it will pass 'this'.
*/
- virtual void updateZ(QCanvasRectangle * /*vStrut*/ = 0) {};
+ virtual void updateZ(TQCanvasRectangle * /*vStrut*/ = 0) {};
/**
* clean up for prettyness
*/
@@ -125,11 +125,11 @@ public:
* returns a Config that can be used to configure this item by the user.
* The default implementation returns one that says 'No configuration options'.
*/
- virtual Config *config(QWidget *parent) { return new DefaultConfig(parent); }
+ virtual Config *config(TQWidget *parent) { return new DefaultConfig(parent); }
/**
* returns other items that should be moveable (besides this one of course).
*/
- virtual QPtrList<QCanvasItem> moveableItems() const { return QPtrList<QCanvasItem>(); }
+ virtual TQPtrList<TQCanvasItem> moveableItems() const { return TQPtrList<TQCanvasItem>(); }
/**
* returns whether this can be moved by the user while editing.
*/
@@ -142,7 +142,7 @@ public:
* call to play sound (ie, playSound("wall") plays kdedir/share/apps/kolf/sounds/wall.wav).
* optionally, specify vol to be between 0-1, for no sound to full volume, respectively.
*/
- void playSound(QString file, double vol = 1);
+ void playSound(TQString file, double vol = 1);
/**
* called on ball's collision. Return if terrain collisions should be processed.
@@ -160,8 +160,8 @@ public:
*/
virtual bool cornerResize() const { return false; }
- QString name() const { return m_name; }
- void setName(const QString &newname) { m_name = newname; }
+ TQString name() const { return m_name; }
+ void setName(const TQString &newname) { m_name = newname; }
protected:
/**
@@ -172,10 +172,10 @@ protected:
/**
* returns the highest vertical strut the item is on
*/
- QCanvasRectangle *onVStrut();
+ TQCanvasRectangle *onVStrut();
private:
- QString m_name;
+ TQString m_name;
int id;
};