summaryrefslogtreecommitdiffstats
path: root/kchart/kdchart/KDFrameProfileSection.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kchart/kdchart/KDFrameProfileSection.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
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
Diffstat (limited to 'kchart/kdchart/KDFrameProfileSection.cpp')
-rw-r--r--kchart/kdchart/KDFrameProfileSection.cpp24
1 files changed, 12 insertions, 12 deletions
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" ) {