diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
commit | 11f31c37e5fa4889d9989f10272f44845449cb7b (patch) | |
tree | 4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/kdeext/QCanvasGroupableItem.cpp | |
parent | 832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff) | |
download | rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip |
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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) {} |