diff options
Diffstat (limited to 'src/gui/kdeext/QCanvasGroupableItem.cpp')
-rw-r--r-- | src/gui/kdeext/QCanvasGroupableItem.cpp | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/src/gui/kdeext/QCanvasGroupableItem.cpp b/src/gui/kdeext/QCanvasGroupableItem.cpp index 1fc2f2d..2a31934 100644 --- a/src/gui/kdeext/QCanvasGroupableItem.cpp +++ b/src/gui/kdeext/QCanvasGroupableItem.cpp @@ -19,12 +19,12 @@ COPYING included with this distribution for more information. */ -#include <qcanvas.h> +#include <tqcanvas.h> #include "misc/Debug.h" #include "QCanvasGroupableItem.h" -QCanvasGroupableItem::QCanvasGroupableItem(QCanvasItem *i, +QCanvasGroupableItem::QCanvasGroupableItem(TQCanvasItem *i, QCanvasItemGroup *g, bool withRelativeCoords) : m_group(g), @@ -66,8 +66,8 @@ QCanvasGroupableItem::detach() ////////////////////////////////////////////////////////////////////// -QCanvasItemGroup::QCanvasItemGroup(QCanvas *c) - : QCanvasItem(c) +QCanvasItemGroup::QCanvasItemGroup(TQCanvas *c) + : TQCanvasItem(c) { // RG_DEBUG << "QCanvasItemGroup() - this : " << this << endl; } @@ -77,7 +77,7 @@ QCanvasItemGroup::~QCanvasItemGroup() // RG_DEBUG << "~QCanvasItemGroup() - this : " << this << endl; // Tell all our items that we're being destroyed - QCanvasItemList::Iterator i; + TQCanvasItemList::Iterator i; for (i = m_items.begin(); i != m_items.end(); ++i) { QCanvasGroupableItem *t = dynamic_cast<QCanvasGroupableItem*>(*i); if (t) @@ -88,9 +88,9 @@ QCanvasItemGroup::~QCanvasItemGroup() void QCanvasItemGroup::moveBy(double dx, double dy) { - QCanvasItem::moveBy(dx, dy); // move ourselves + TQCanvasItem::moveBy(dx, dy); // move ourselves - QCanvasItemList::Iterator i; // move group items + TQCanvasItemList::Iterator i; // move group items for (i = m_items.begin(); i != m_items.end(); ++i) (*i)->moveBy(dx, dy); } @@ -98,15 +98,15 @@ QCanvasItemGroup::moveBy(double dx, double dy) void QCanvasItemGroup::advance(int stage) { - QCanvasItemList::Iterator i; + TQCanvasItemList::Iterator i; for (i = m_items.begin(); i != m_items.end(); ++i) (*i)->advance(stage); } bool -QCanvasItemGroup::collidesWith(const QCanvasItem *item) const +QCanvasItemGroup::collidesWith(const TQCanvasItem *item) const { - QCanvasItemList::ConstIterator i; + TQCanvasItemList::ConstIterator i; for (i = m_items.begin(); i != m_items.end(); ++i) if ((*i)->collidesWith(item)) return true; @@ -115,13 +115,13 @@ QCanvasItemGroup::collidesWith(const QCanvasItem *item) const } void -QCanvasItemGroup::draw(QPainter&) +QCanvasItemGroup::draw(TQPainter&) { // There isn't anything to do - all the items will be drawn // seperately by the canvas anyway. However the function has to be - // implemented because it's an abstract virtual in QCanvasItem. + // implemented because it's an abstract virtual in TQCanvasItem. - // QCanvasItemList::Iterator i; + // TQCanvasItemList::Iterator i; // for(i = m_items.begin(); i != m_items.end(); ++i) // (*i)->draw(p); } @@ -129,7 +129,7 @@ QCanvasItemGroup::draw(QPainter&) void QCanvasItemGroup::setVisible(bool yes) { - QCanvasItemList::Iterator i; + TQCanvasItemList::Iterator i; for (i = m_items.begin(); i != m_items.end(); ++i) (*i)->setVisible(yes); } @@ -137,9 +137,9 @@ QCanvasItemGroup::setVisible(bool yes) void QCanvasItemGroup::setSelected(bool yes) { - QCanvasItem::setSelected(yes); + TQCanvasItem::setSelected(yes); - QCanvasItemList::Iterator i; + TQCanvasItemList::Iterator i; for (i = m_items.begin(); i != m_items.end(); ++i) (*i)->setVisible(yes); } @@ -147,9 +147,9 @@ QCanvasItemGroup::setSelected(bool yes) void QCanvasItemGroup::setEnabled(bool yes) { - QCanvasItem::setEnabled(yes); + TQCanvasItem::setEnabled(yes); - QCanvasItemList::Iterator i; + TQCanvasItemList::Iterator i; for (i = m_items.begin(); i != m_items.end(); ++i) (*i)->setEnabled(yes); } @@ -157,9 +157,9 @@ QCanvasItemGroup::setEnabled(bool yes) void QCanvasItemGroup::setActive(bool yes) { - QCanvasItem::setActive(yes); + TQCanvasItem::setActive(yes); - QCanvasItemList::Iterator i; + TQCanvasItemList::Iterator i; for (i = m_items.begin(); i != m_items.end(); ++i) (*i)->setActive(yes); } @@ -173,9 +173,9 @@ QCanvasItemGroup::rtti() const QRect QCanvasItemGroup::boundingRect() const { - QRect r; + TQRect r; - QCanvasItemList::ConstIterator i; + TQCanvasItemList::ConstIterator i; for (i = m_items.begin(); i != m_items.end(); ++i) r.unite((*i)->boundingRect()); @@ -185,9 +185,9 @@ QCanvasItemGroup::boundingRect() const QRect QCanvasItemGroup::boundingRectAdvanced() const { - QRect r; + TQRect r; - QCanvasItemList::ConstIterator i; + TQCanvasItemList::ConstIterator i; for (i = m_items.begin(); i != m_items.end(); ++i) r.unite((*i)->boundingRectAdvanced()); @@ -195,11 +195,11 @@ QCanvasItemGroup::boundingRectAdvanced() const } bool -QCanvasItemGroup::collidesWith(const QCanvasSprite *s, - const QCanvasPolygonalItem *p, - const QCanvasRectangle *r, - const QCanvasEllipse *e, - const QCanvasText *t) const +QCanvasItemGroup::collidesWith(const TQCanvasSprite *s, + const TQCanvasPolygonalItem *p, + const TQCanvasRectangle *r, + const TQCanvasEllipse *e, + const TQCanvasText *t) const { if (s) return collidesWith(s); @@ -217,20 +217,20 @@ QCanvasItemGroup::collidesWith(const QCanvasSprite *s, } void -QCanvasItemGroup::addItem(QCanvasItem *i) +QCanvasItemGroup::addItem(TQCanvasItem *i) { m_items.append(i); } void -QCanvasItemGroup::addItemWithRelativeCoords(QCanvasItem *i) +QCanvasItemGroup::addItemWithRelativeCoords(TQCanvasItem *i) { i->moveBy(x(), y()); addItem(i); } void -QCanvasItemGroup::removeItem(QCanvasItem *i) +QCanvasItemGroup::removeItem(TQCanvasItem *i) { // RG_DEBUG << "QCanvasItemGroup::removeItem() - this : " // << this << " - item : " << i << endl; @@ -240,40 +240,40 @@ QCanvasItemGroup::removeItem(QCanvasItem *i) ////////////////////////////////////////////////////////////////////// -QCanvasLineGroupable::QCanvasLineGroupable(QCanvas *c, +QCanvasLineGroupable::QCanvasLineGroupable(TQCanvas *c, QCanvasItemGroup *g) - : QCanvasLine(c), + : TQCanvasLine(c), QCanvasGroupableItem(this, g) {} ////////////////////////////////////////////////////////////////////// -QCanvasRectangleGroupable::QCanvasRectangleGroupable(QCanvas *c, +QCanvasRectangleGroupable::QCanvasRectangleGroupable(TQCanvas *c, QCanvasItemGroup *g) - : QCanvasRectangle(c), + : TQCanvasRectangle(c), QCanvasGroupableItem(this, g) {} ////////////////////////////////////////////////////////////////////// -QCanvasTextGroupable::QCanvasTextGroupable(const QString& label, - QCanvas *c, +QCanvasTextGroupable::QCanvasTextGroupable(const TQString& label, + TQCanvas *c, QCanvasItemGroup *g) - : QCanvasText(label, c), + : TQCanvasText(label, c), QCanvasGroupableItem(this, g) {} -QCanvasTextGroupable::QCanvasTextGroupable(QCanvas *c, +QCanvasTextGroupable::QCanvasTextGroupable(TQCanvas *c, QCanvasItemGroup *g) - : QCanvasText(c), + : TQCanvasText(c), QCanvasGroupableItem(this, g) {} ////////////////////////////////////////////////////////////////////// -QCanvasSpriteGroupable::QCanvasSpriteGroupable(QCanvasPixmapArray *pa, - QCanvas *c, +QCanvasSpriteGroupable::QCanvasSpriteGroupable(TQCanvasPixmapArray *pa, + TQCanvas *c, QCanvasItemGroup *g) - : QCanvasSprite(pa, c), + : TQCanvasSprite(pa, c), QCanvasGroupableItem(this, g) {} |