summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/seqlinewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello/umbrello/seqlinewidget.cpp')
-rw-r--r--umbrello/umbrello/seqlinewidget.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/umbrello/umbrello/seqlinewidget.cpp b/umbrello/umbrello/seqlinewidget.cpp
index a4be0216..6d52834f 100644
--- a/umbrello/umbrello/seqlinewidget.cpp
+++ b/umbrello/umbrello/seqlinewidget.cpp
@@ -23,10 +23,10 @@
// class members
int const SeqLineWidget::m_nMouseDownEpsilonX = 20;
-SeqLineWidget::SeqLineWidget( UMLView * pView, ObjectWidget * pObject ) : QCanvasLine( pView -> canvas() ) {
+SeqLineWidget::SeqLineWidget( UMLView * pView, ObjectWidget * pObject ) : TQCanvasLine( pView -> canvas() ) {
m_pView = pView;
m_pObject = pObject;
- setPen( QPen( m_pObject->getLineColor(), 0, Qt::DashLine ) );
+ setPen( TQPen( m_pObject->getLineColor(), 0, Qt::DashLine ) );
setZ( 0 );
setVisible( true );
m_DestructionBox.line1 = 0;
@@ -36,10 +36,10 @@ SeqLineWidget::SeqLineWidget( UMLView * pView, ObjectWidget * pObject ) : QCanva
SeqLineWidget::~SeqLineWidget() {}
-int SeqLineWidget::onWidget( const QPoint & p ) {
+int SeqLineWidget::onWidget( const TQPoint & p ) {
int nOnWidget = 0;
- QPoint sp = startPoint();
- QPoint ep = endPoint();
+ TQPoint sp = startPoint();
+ TQPoint ep = endPoint();
//see if on widget ( for message creation )
if( sp.x() - m_nMouseDownEpsilonX < p.x()
&& ep.x() + m_nMouseDownEpsilonX > p.x()
@@ -57,7 +57,7 @@ void SeqLineWidget::cleanup() {
void SeqLineWidget::setStartPoint( int startX, int startY ) {
int endX = startX;
int endY = startY + m_nLengthY;
- QCanvasLine::setPoints( startX, startY, endX, endY );
+ TQCanvasLine::setPoints( startX, startY, endX, endY );
moveDestructionBox();
}
@@ -75,22 +75,22 @@ void SeqLineWidget::setupDestructionBox() {
if( !m_pObject->getShowDestruction() ) {
return;
}
- QRect rect;
+ TQRect rect;
rect.setX( m_pObject->getX() + m_pObject->getWidth() / 2 - 10 );
rect.setY( m_pObject->getY() + m_pObject->getHeight() + m_nLengthY );
rect.setWidth( 14 );
rect.setHeight( 14 );
- m_DestructionBox.line1 = new QCanvasLine( m_pView->canvas() );
+ m_DestructionBox.line1 = new TQCanvasLine( m_pView->canvas() );
m_DestructionBox.setLine1Points(rect);
m_DestructionBox.line1->setVisible( true );
- m_DestructionBox.line1->setPen( QPen(m_pObject->getLineColor(), 2) );
+ m_DestructionBox.line1->setPen( TQPen(m_pObject->getLineColor(), 2) );
m_DestructionBox.line1->setZ( 3 );
- m_DestructionBox.line2 = new QCanvasLine( m_pView -> canvas() );
+ m_DestructionBox.line2 = new TQCanvasLine( m_pView -> canvas() );
m_DestructionBox.setLine2Points(rect);
m_DestructionBox.line2->setVisible( true );
- m_DestructionBox.line2->setPen( QPen(m_pObject->getLineColor(), 2) );
+ m_DestructionBox.line2->setPen( TQPen(m_pObject->getLineColor(), 2) );
m_DestructionBox.line2->setZ( 3 );
}
@@ -98,7 +98,7 @@ void SeqLineWidget::moveDestructionBox() {
if( !m_DestructionBox.line1 ) {
return;
}
- QRect rect;
+ TQRect rect;
rect.setX( m_pObject->getX() + m_pObject->getWidth() / 2 - 7 );
rect.setY( m_pObject->getY() + m_pObject->getHeight() + m_nLengthY - 7 );
rect.setWidth( 14 );
@@ -108,7 +108,7 @@ void SeqLineWidget::moveDestructionBox() {
}
void SeqLineWidget::setEndOfLine(int yPosition) {
- QPoint sp = startPoint();
+ TQPoint sp = startPoint();
int newY = yPosition;
m_nLengthY = yPosition - m_pObject->getY() - m_pObject->getHeight();
// normally the managing Objectwidget is responsible for the call of this function