diff options
Diffstat (limited to 'kugar/lib/mlineobject.cpp')
-rw-r--r-- | kugar/lib/mlineobject.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kugar/lib/mlineobject.cpp b/kugar/lib/mlineobject.cpp index dba410780..2a4a0bc92 100644 --- a/kugar/lib/mlineobject.cpp +++ b/kugar/lib/mlineobject.cpp @@ -12,9 +12,9 @@ namespace Kugar { /** Constructor */ -MLineObject::MLineObject() : QObject() +MLineObject::MLineObject() : TQObject() { - // Set the object's default geometry + // Set the object's default tqgeometry xpos1 = 0; ypos1 = 0; xpos2 = 0; @@ -27,7 +27,7 @@ MLineObject::MLineObject() : QObject() } /** Copy constructor */ -MLineObject::MLineObject( const MLineObject& mLineObject ) /*: QObject((QObject &) mLineObject)*/ +MLineObject::MLineObject( const MLineObject& mLineObject ) /*: TQObject((TQObject &) mLineObject)*/ { copy( &mLineObject ); } @@ -42,7 +42,7 @@ MLineObject MLineObject::operator=( const MLineObject& mLineObject ) copy( &mLineObject ); // Copy the base class's data - //((QObject &) *this) = mLineObject; + //((TQObject &) *this) = mLineObject; return *this; } @@ -79,15 +79,15 @@ void MLineObject::setWidth( int width ) } /** Draws the object to the specified painter & x/y offsets */ -void MLineObject::draw( QPainter* p, int xoffset, int yoffset ) +void MLineObject::draw( TQPainter* p, int xoffset, int yoffset ) { drawBase( p, xoffset, yoffset ); } /** Draws the base object to the specified painter & x/y offsets */ -void MLineObject::drawBase( QPainter* p, int xoffset, int yoffset ) +void MLineObject::drawBase( TQPainter* p, int xoffset, int yoffset ) { - QPen linePen( penColor, penWidth, ( QPen::PenStyle ) penStyle ); + TQPen linePen( penColor, penWidth, ( TQPen::PenStyle ) penStyle ); // Set the offsets int xcalc1 = xpos1 + xoffset; @@ -104,7 +104,7 @@ void MLineObject::drawBase( QPainter* p, int xoffset, int yoffset ) Used by the copy constructor and assignment operator */ void MLineObject::copy( const MLineObject* mLineObject ) { - // Copy the object's geometry + // Copy the object's tqgeometry xpos1 = mLineObject->xpos1; ypos1 = mLineObject->ypos1; xpos2 = mLineObject->xpos2; |