summaryrefslogtreecommitdiffstats
path: root/kpresenter/KPrFreehandObject.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 /kpresenter/KPrFreehandObject.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 'kpresenter/KPrFreehandObject.cpp')
-rw-r--r--kpresenter/KPrFreehandObject.cpp26
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 );
}