diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
commit | 576eb4299a00bc053db35414406f46372a0f70f2 (patch) | |
tree | 4c030922d533821db464af566188e7d40cc8848c /kolf/canvasitem.cpp | |
parent | 0718336b6017d1a4fc1d626544180a5a2a29ddec (diff) | |
download | tdegames-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.cpp')
-rw-r--r-- | kolf/canvasitem.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kolf/canvasitem.cpp b/kolf/canvasitem.cpp index 5e39257c..e8f199e3 100644 --- a/kolf/canvasitem.cpp +++ b/kolf/canvasitem.cpp @@ -1,21 +1,21 @@ -#include <qcanvas.h> +#include <tqcanvas.h> #include <kconfig.h> #include "game.h" #include "canvasitem.h" -QCanvasRectangle *CanvasItem::onVStrut() +TQCanvasRectangle *CanvasItem::onVStrut() { - QCanvasItem *qthis = dynamic_cast<QCanvasItem *>(this); + TQCanvasItem *qthis = dynamic_cast<TQCanvasItem *>(this); if (!qthis) return 0; - QCanvasItemList l = qthis->collisions(true); + TQCanvasItemList l = qthis->collisions(true); l.sort(); bool aboveVStrut = false; CanvasItem *item = 0; - QCanvasItem *qitem = 0; - for (QCanvasItemList::Iterator it = l.begin(); it != l.end(); ++it) + TQCanvasItem *qitem = 0; + for (TQCanvasItemList::Iterator it = l.begin(); it != l.end(); ++it) { item = dynamic_cast<CanvasItem *>(*it); if (item) @@ -30,7 +30,7 @@ QCanvasRectangle *CanvasItem::onVStrut() } } - QCanvasRectangle *ritem = dynamic_cast<QCanvasRectangle *>(qitem); + TQCanvasRectangle *ritem = dynamic_cast<TQCanvasRectangle *>(qitem); return aboveVStrut && ritem? ritem : 0; } @@ -40,7 +40,7 @@ void CanvasItem::save(KConfig *cfg) cfg->writeEntry("dummykey", true); } -void CanvasItem::playSound(QString file, double vol) +void CanvasItem::playSound(TQString file, double vol) { if (game) game->playSound(file, vol); |