diff options
Diffstat (limited to 'src/graphnode.cpp')
-rw-r--r-- | src/graphnode.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/graphnode.cpp b/src/graphnode.cpp index 28a219d..9f8fe9d 100644 --- a/src/graphnode.cpp +++ b/src/graphnode.cpp @@ -25,8 +25,8 @@ * ***************************************************************************/ -#include <qpainter.h> -#include <qfontmetrics.h> +#include <ntqpainter.h> +#include <ntqfontmetrics.h> #include "graphnode.h" int GraphNode::RTTI = 1001; @@ -37,8 +37,8 @@ int GraphNode::RTTI = 1001; * @param sFunc The node's function * @param bMultiCall Whether this node represents multiple calls */ -GraphNode::GraphNode(QCanvas* pCanvas, const QString& sFunc, bool bMultiCall) : - QCanvasPolygon(pCanvas), +GraphNode::GraphNode(TQCanvas* pCanvas, const TQString& sFunc, bool bMultiCall) : + TQCanvasPolygon(pCanvas), m_sFunc(sFunc), m_bMultiCall(bMultiCall), m_bDfsFlag(false) @@ -90,12 +90,12 @@ void GraphNode::dfs() m_bDfsFlag = true; // Continue along outgoing edges - QDictIterator<GraphEdge> itrOut(m_dictOutEdges); + TQDictIterator<GraphEdge> itrOut(m_dictOutEdges); for (; itrOut.current(); ++itrOut) (*itrOut)->getTail()->dfs(); // Continue along incoming edges - QDictIterator<GraphEdge> itrIn(m_dictInEdges); + TQDictIterator<GraphEdge> itrIn(m_dictInEdges); for (; itrIn.current(); ++itrIn) (*itrIn)->getHead()->dfs(); } @@ -116,7 +116,7 @@ void GraphNode::removeOutEdges() */ void GraphNode::removeInEdges() { - QDictIterator<GraphEdge> itr(m_dictInEdges); + TQDictIterator<GraphEdge> itr(m_dictInEdges); // Delete edges through their head nodes for (; itr.current(); ++itr) @@ -134,8 +134,8 @@ void GraphNode::removeInEdges() */ void GraphNode::getFirstNeighbour(GraphNode*& pNode, bool& bCalled) { - QDictIterator<GraphEdge> itrIn(m_dictInEdges); - QDictIterator<GraphEdge> itrOut(m_dictOutEdges); + TQDictIterator<GraphEdge> itrIn(m_dictInEdges); + TQDictIterator<GraphEdge> itrOut(m_dictOutEdges); if (itrIn.current()) { pNode = itrIn.current()->getHead(); @@ -154,9 +154,9 @@ void GraphNode::getFirstNeighbour(GraphNode*& pNode, bool& bCalled) * Modifies the bounding rectangle of the node. * @param rect The new coordinates to set */ -void GraphNode::setRect(const QRect& rect) +void GraphNode::setRect(const TQRect& rect) { - QPointArray arr(4); + TQPointArray arr(4); m_rect = rect; @@ -171,22 +171,22 @@ void GraphNode::setRect(const QRect& rect) * Draws the node. * @param painter Used for drawing the item on the canvas view */ -void GraphNode::drawShape(QPainter& painter) +void GraphNode::drawShape(TQPainter& painter) { - const QPen& pen = painter.pen(); - const QFont& font = painter.font(); + const TQPen& pen = painter.pen(); + const TQFont& font = painter.font(); // Draw the rectangle - painter.setPen(QPen(Qt::black)); + painter.setPen(TQPen(TQt::black)); painter.drawRect(m_rect); // Draw the text painter.setPen(pen); painter.setFont(m_font); if (m_bMultiCall) - painter.drawText(m_rect, Qt::AlignCenter, "..."); + painter.drawText(m_rect, TQt::AlignCenter, "..."); else - painter.drawText(m_rect, Qt::AlignCenter, m_sFunc); + painter.drawText(m_rect, TQt::AlignCenter, m_sFunc); painter.setFont(font); } |