summaryrefslogtreecommitdiffstats
path: root/lib/kformula/actionelement.cc
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 /lib/kformula/actionelement.cc
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 'lib/kformula/actionelement.cc')
-rw-r--r--lib/kformula/actionelement.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/kformula/actionelement.cc b/lib/kformula/actionelement.cc
index fdee73a5..5fa5a38e 100644
--- a/lib/kformula/actionelement.cc
+++ b/lib/kformula/actionelement.cc
@@ -22,19 +22,19 @@
KFORMULA_NAMESPACE_BEGIN
-ActionElement::ActionElement( BasicElement* parent ) : SequenceElement( parent ),
+ActionElement::ActionElement( BasicElement* tqparent ) : SequenceElement( tqparent ),
m_selection( 0 )
{
}
-bool ActionElement::readAttributesFromMathMLDom(const QDomElement& element)
+bool ActionElement::readAttributesFromMathMLDom(const TQDomElement& element)
{
if ( ! BasicElement::readAttributesFromMathMLDom( element ) ) {
return false;
}
m_actionType = element.attribute( "actiontype" );
- QString selectionStr = element.attribute( "selection" );
+ TQString selectionStr = element.attribute( "selection" );
if ( ! selectionStr.isNull() ) {
bool ok;
m_selection = selectionStr.toUInt( &ok );
@@ -44,12 +44,12 @@ bool ActionElement::readAttributesFromMathMLDom(const QDomElement& element)
return true;
}
-int ActionElement::buildChildrenFromMathMLDom(QPtrList<BasicElement>& list, QDomNode n)
+int ActionElement::buildChildrenFromMathMLDom(TQPtrList<BasicElement>& list, TQDomNode n)
{
if ( ! n.isElement() )
return -1;
- QDomElement e = n.toElement();
- QString tag = e.tagName().lower();
+ TQDomElement e = n.toElement();
+ TQString tag = e.tagName().lower();
BasicElement* child = getCreationStrategy()->createElement( tag, e );
if ( child == 0 )
return -1;
@@ -63,13 +63,13 @@ int ActionElement::buildChildrenFromMathMLDom(QPtrList<BasicElement>& list, QDom
return 1;
}
-void ActionElement::writeMathMLAttributes( QDomElement& element ) const
+void ActionElement::writeMathMLAttributes( TQDomElement& element ) const
{
if ( ! m_actionType.isNull() ) {
element.setAttribute( "actiontype", m_actionType );
}
if ( m_selection ) {
- element.setAttribute( "selection", QString( "%1" ).arg( m_selection ) );
+ element.setAttribute( "selection", TQString( "%1" ).tqarg( m_selection ) );
}
}