summaryrefslogtreecommitdiffstats
path: root/libkdchart/KDFrameProfileSection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdchart/KDFrameProfileSection.cpp')
-rw-r--r--libkdchart/KDFrameProfileSection.cpp24
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" ) {