summaryrefslogtreecommitdiffstats
path: root/kugar/lib/mlineobject.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kugar/lib/mlineobject.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kugar/lib/mlineobject.cpp')
-rw-r--r--kugar/lib/mlineobject.cpp16
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;