From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: 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 --- kpresenter/KPrLineObject.cpp | 46 ++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'kpresenter/KPrLineObject.cpp') diff --git a/kpresenter/KPrLineObject.cpp b/kpresenter/KPrLineObject.cpp index f0ac86bc..1cd98819 100644 --- a/kpresenter/KPrLineObject.cpp +++ b/kpresenter/KPrLineObject.cpp @@ -27,9 +27,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include #include @@ -80,7 +80,7 @@ bool KPrLineObject::saveOasisObjectAttributes( KPOasisSaveContext &/*sc*/ ) cons void KPrLineObject::saveOasisPosObject( KoXmlWriter &xmlWriter, int indexObj ) const { - xmlWriter.addAttribute( "draw:id", "object" + QString::number( indexObj ) ); + xmlWriter.addAttribute( "draw:id", "object" + TQString::number( indexObj ) ); double x1 = 0.0; double y1 = 0.0; @@ -114,7 +114,7 @@ void KPrLineObject::saveOasisPosObject( KoXmlWriter &xmlWriter, int indexObj ) c if ( kAbs( angle ) > 1E-6 ) { double angInRad = -angle * M_PI / 180.0; - QWMatrix m( cos( angInRad ), -sin( angInRad ), sin( angInRad ), cos( angInRad ), 0, 0 ); + TQWMatrix m( cos( angInRad ), -sin( angInRad ), sin( angInRad ), cos( angInRad ), 0, 0 ); double transX1 = 0.0; double transY1 = 0.0; double transX2 = 0.0; @@ -144,27 +144,27 @@ const char * KPrLineObject::getOasisElementName() const return "draw:line"; } -QDomDocumentFragment KPrLineObject::save( QDomDocument& doc, double offset ) +TQDomDocumentFragment KPrLineObject::save( TQDomDocument& doc, double offset ) { - QDomDocumentFragment fragment=KPrShadowObject::save(doc, offset); + TQDomDocumentFragment fragment=KPrShadowObject::save(doc, offset); if (lineType!=LT_HORZ) fragment.appendChild(KPrObject::createValueElement("LINETYPE", static_cast(lineType), doc)); KPrStartEndLine::save( fragment, doc ); return fragment; } -void KPrLineObject::loadOasis(const QDomElement &element, KoOasisContext & context, KPrLoadingInfo *info) +void KPrLineObject::loadOasis(const TQDomElement &element, KoOasisContext & context, KPrLoadingInfo *info) { KPrShadowObject::loadOasis(element, context, info); - double x1 = KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "x1", QString::null ) ); - double y1 = KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "y1", QString::null ) ); - double x2 = KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "x2", QString::null ) ); - double y2 = KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "y2", QString::null ) ); + double x1 = KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "x1", TQString() ) ); + double y1 = KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "y1", TQString() ) ); + double x2 = KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "x2", TQString() ) ); + double y2 = KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "y2", TQString() ) ); - kdDebug()<<" KPrLineObject::loadOasis(const QDomElement &element) : x1 "<< x1 <<" y1 : "<setRasterOp( Qt::NotXorROP ); + pen2 = TQPen( TQt::black, 1, TQt::DotLine ); + _painter->setRasterOp( TQt::NotXorROP ); } else { pen2 = pen.zoomedPen( _zoomHandler ); -- cgit v1.2.1