diff options
Diffstat (limited to 'kolf/canvasitem.h')
-rw-r--r-- | kolf/canvasitem.h | 20 |
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; }; |