summaryrefslogtreecommitdiffstats
path: root/src/fpnode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fpnode.cpp')
-rw-r--r--src/fpnode.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/fpnode.cpp b/src/fpnode.cpp
index 39901c6..5663bfb 100644
--- a/src/fpnode.cpp
+++ b/src/fpnode.cpp
@@ -14,9 +14,9 @@
#include "fpnode.h"
#include <kdebug.h>
-#include <qpainter.h>
+#include <tqpainter.h>
-FPNode::FPNode( ICNDocument *icnDocument, Node::node_type type, node_dir dir, const QPoint &pos, QString *id )
+FPNode::FPNode( ICNDocument *icnDocument, Node::node_type type, node_dir dir, const TQPoint &pos, TQString *id )
: Node( icnDocument, type, dir, pos, id )
{
icnDocument->registerItem(this);
@@ -30,7 +30,7 @@ FPNode::~FPNode()
FlowPart *FPNode::outputFlowPart() const
{
- FlowPart *flowPart = dynamic_cast<FlowPart*>(parentItem());
+ FlowPart *flowPart = dynamic_cast<FlowPart*>(tqparentItem());
if ( type() == fp_in )
return flowPart;
@@ -52,7 +52,7 @@ FlowPart *FPNode::outputFlowPart() const
FlowPartList FPNode::inputFlowParts() const
{
FlowPartList list;
- FlowPart *flowPart = dynamic_cast<FlowPart*>(parentItem());
+ FlowPart *flowPart = dynamic_cast<FlowPart*>(tqparentItem());
if ( type() != fp_in && flowPart )
{
list.append(flowPart);
@@ -64,7 +64,7 @@ FlowPartList FPNode::inputFlowParts() const
if (*it)
{
Node *startNode = (*it)->startNode();
- FlowPart *flowPart = startNode ? dynamic_cast<FlowPart*>(startNode->parentItem()) : 0l;
+ FlowPart *flowPart = startNode ? dynamic_cast<FlowPart*>(startNode->tqparentItem()) : 0l;
if (flowPart)
list.append(flowPart);
}
@@ -73,37 +73,37 @@ FlowPartList FPNode::inputFlowParts() const
}
-inline QPointArray arrowPoints( Node::node_dir dir )
+inline TQPointArray arrowPoints( Node::node_dir dir )
{
- QPointArray pa(3);
+ TQPointArray pa(3);
switch (dir)
{
case Node::dir_right:
- pa[0] = QPoint( 3, 0 );
- pa[1] = QPoint( 0, 2 );
- pa[2] = QPoint( 0, -2 );
+ pa[0] = TQPoint( 3, 0 );
+ pa[1] = TQPoint( 0, 2 );
+ pa[2] = TQPoint( 0, -2 );
break;
case Node::dir_left:
- pa[0] = QPoint( -3, 0 );
- pa[1] = QPoint( 0, 2 );
- pa[2] = QPoint( 0, -2 );
+ pa[0] = TQPoint( -3, 0 );
+ pa[1] = TQPoint( 0, 2 );
+ pa[2] = TQPoint( 0, -2 );
break;
case Node::dir_down:
- pa[0] = QPoint( 2, 0 );
- pa[1] = QPoint( -2, 0 );
- pa[2] = QPoint( 0, 3 );
+ pa[0] = TQPoint( 2, 0 );
+ pa[1] = TQPoint( -2, 0 );
+ pa[2] = TQPoint( 0, 3 );
break;
case Node::dir_up:
- pa[0] = QPoint( 2, 0 );
- pa[1] = QPoint( -2, 0 );
- pa[2] = QPoint( 0, -3 );
+ pa[0] = TQPoint( 2, 0 );
+ pa[1] = TQPoint( -2, 0 );
+ pa[2] = TQPoint( 0, -3 );
break;
};
return pa;
}
-void FPNode::drawShape( QPainter &p )
+void FPNode::drawShape( TQPainter &p )
{
const int _x = (int)x();
const int _y = (int)y();
@@ -118,16 +118,16 @@ void FPNode::drawShape( QPainter &p )
continue;
// Work out the direction of the connector
- const QPointList points = connector->connectorPoints(false);
+ const TQPointList points = connector->connectorPoints(false);
const int count = points.size();
if ( count < 2 )
continue;
- QPoint end_0 = points[count-1];
- QPoint end_1 = points[count-2];
+ TQPoint end_0 = points[count-1];
+ TQPoint end_1 = points[count-2];
- QPointArray pa;
+ TQPointArray pa;
if ( end_0.x() < end_1.x() )
{
pa = arrowPoints( Node::dir_left );
@@ -152,7 +152,7 @@ void FPNode::drawShape( QPainter &p )
continue;
pa.translate( _x, _y );
- p.setPen( connector->isSelected() ? m_selectedColor : Qt::black );
+ p.setPen( connector->isSelected() ? m_selectedColor : TQt::black );
p.drawPolygon(pa);
}
return;
@@ -163,7 +163,7 @@ void FPNode::drawShape( QPainter &p )
else if ( m_dir == Node::dir_left ) p.drawLine( _x, _y, _x+8, _y );
else if ( m_dir == Node::dir_up ) p.drawLine( _x, _y, _x, _y+8 );
- QPointArray pa(3);
+ TQPointArray pa(3);
// Right facing arrow
if ( (type() == fp_out && m_dir == Node::dir_right) ||