diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
commit | fecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch) | |
tree | 6b8614802f0d01b353bc9ba78aff2090846c198e /libkdchart/KDFrameProfileSection.cpp | |
parent | dadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff) | |
download | kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.tar.gz kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.zip |
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
Diffstat (limited to 'libkdchart/KDFrameProfileSection.cpp')
-rw-r--r-- | libkdchart/KDFrameProfileSection.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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" ) { |