From fecb0e67b23e8b83ba7fc881bb57bc48c0852d62 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 5 Jul 2011 06:00:29 +0000 Subject: TQt4 port kmymoney This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239855 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkdchart/KDFrameProfileSection.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'libkdchart/KDFrameProfileSection.cpp') diff --git a/libkdchart/KDFrameProfileSection.cpp b/libkdchart/KDFrameProfileSection.cpp index bfd64ff..924e864 100644 --- a/libkdchart/KDFrameProfileSection.cpp +++ b/libkdchart/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