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 --- kchart/kdchart/KDFrameProfileSection.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kchart/kdchart/KDFrameProfileSection.cpp') diff --git a/kchart/kdchart/KDFrameProfileSection.cpp b/kchart/kdchart/KDFrameProfileSection.cpp index bfd64ff37..924e864b7 100644 --- a/kchart/kdchart/KDFrameProfileSection.cpp +++ b/kchart/kdchart/KDFrameProfileSection.cpp @@ -35,14 +35,14 @@ KDFrameProfileSection::~KDFrameProfileSection() } -void KDFrameProfileSection::createFrameProfileSectionNode( QDomDocument& document, - QDomNode& parent, - const QString& elementName, +void KDFrameProfileSection::createFrameProfileSectionNode( TQDomDocument& document, + TQDomNode& tqparent, + const TQString& elementName, const KDFrameProfileSection* section ) { - QDomElement sectionElement = document.createElement( elementName ); - parent.appendChild( sectionElement ); + TQDomElement sectionElement = document.createElement( elementName ); + tqparent.appendChild( sectionElement ); KDXML::createStringNode( document, sectionElement, "Direction", KDFrameProfileSection::directionToString( section->_direction ) ); KDXML::createStringNode( document, sectionElement, "Curvature", @@ -52,25 +52,25 @@ void KDFrameProfileSection::createFrameProfileSectionNode( QDomDocument& documen } -bool KDFrameProfileSection::readFrameProfileSectionNode( const QDomElement& element, +bool KDFrameProfileSection::readFrameProfileSectionNode( const TQDomElement& element, KDFrameProfileSection* section ) { bool ok = true; Direction tempDirection = DirPlain; Curvature tempCurvature = CvtPlain; int tempWidth; - QPen tempPen; - QDomNode node = element.firstChild(); + TQPen tempPen; + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "Direction" ) { - QString value; + TQString value; ok = ok & KDXML::readStringNode( element, value ); tempDirection = stringToDirection( value ); } else if( tagName == "Curvature" ) { - QString value; + TQString value; ok = ok & KDXML::readStringNode( element, value ); tempCurvature = stringToCurvature( value ); } else if( tagName == "Width" ) { -- cgit v1.2.3