diff options
Diffstat (limited to 'kpresenter/KPrFreehandObject.cpp')
-rw-r--r-- | kpresenter/KPrFreehandObject.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kpresenter/KPrFreehandObject.cpp b/kpresenter/KPrFreehandObject.cpp index 662c9a3c..077b9eed 100644 --- a/kpresenter/KPrFreehandObject.cpp +++ b/kpresenter/KPrFreehandObject.cpp @@ -22,9 +22,9 @@ #include "KPrFreehandObject.h" #include "KPrUtils.h" #include <KoTextZoomHandler.h> -#include <qpainter.h> -#include <qwmatrix.h> -#include <qdom.h> +#include <tqpainter.h> +#include <tqwmatrix.h> +#include <tqdom.h> #include <kdebug.h> #include <math.h> @@ -59,20 +59,20 @@ bool KPrFreehandObject::saveOasisObjectAttributes( KPOasisSaveContext &sc ) cons { // the rect for the view box have to be the rect and not the real rect KoRect rect( getRect() ); - sc.xmlWriter.addAttribute("svg:viewBox", QString( "0 0 %1 %2" ).arg( int( rect.width() * 100 ) ) - .arg( int( rect.height() * 100 ) ) ); + sc.xmlWriter.addAttribute("svg:viewBox", TQString( "0 0 %1 %2" ).tqarg( int( rect.width() * 100 ) ) + .tqarg( int( rect.height() * 100 ) ) ); unsigned int pointCount = points.count(); unsigned int pos = 0; - QString d; - d += QString( "M%1 %2" ).arg( int( points.at(pos).x() * 100 ) ) - .arg( int( points.at(pos).y() * 100 ) ); + TQString d; + d += TQString( "M%1 %2" ).tqarg( int( points.at(pos).x() * 100 ) ) + .tqarg( int( points.at(pos).y() * 100 ) ); ++pos; while ( pos < pointCount ) { - d += QString( "L%1 %2" ).arg( int( points.at( pos ).x() * 100 ) ) - .arg( int( points.at( pos ).y() * 100 ) ); + d += TQString( "L%1 %2" ).tqarg( int( points.at( pos ).x() * 100 ) ) + .tqarg( int( points.at( pos ).y() * 100 ) ); ++pos; } @@ -86,7 +86,7 @@ const char * KPrFreehandObject::getOasisElementName() const return "draw:path"; } -void KPrFreehandObject::loadOasis( const QDomElement &element, KoOasisContext & context, KPrLoadingInfo* info ) +void KPrFreehandObject::loadOasis( const TQDomElement &element, KoOasisContext & context, KPrLoadingInfo* info ) { kdDebug(33001) << "KPrFreehandObject::loadOasis" << endl; KPrPointObject::loadOasis( element, context, info ); @@ -95,12 +95,12 @@ void KPrFreehandObject::loadOasis( const QDomElement &element, KoOasisContext & loadOasisMarker( context ); } -QDomDocumentFragment KPrFreehandObject::save( QDomDocument& doc,double offset ) +TQDomDocumentFragment KPrFreehandObject::save( TQDomDocument& doc,double offset ) { return KPrPointObject::save( doc, offset ); } -double KPrFreehandObject::load( const QDomElement &element ) +double KPrFreehandObject::load( const TQDomElement &element ) { return KPrPointObject::load( element ); } |