summaryrefslogtreecommitdiffstats
path: root/lib/kformula/basicelement.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kformula/basicelement.cc')
-rw-r--r--lib/kformula/basicelement.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/kformula/basicelement.cc b/lib/kformula/basicelement.cc
index 1d36193a..096814aa 100644
--- a/lib/kformula/basicelement.cc
+++ b/lib/kformula/basicelement.cc
@@ -34,7 +34,7 @@ using namespace std;
int BasicElement::evilDestructionCount = 0;
BasicElement::BasicElement( BasicElement* p )
- : tqparent( p ), m_baseline( 0 ), elementType( 0 )
+ : parent( p ), m_baseline( 0 ), elementType( 0 )
{
setX( 0 );
setY( 0 );
@@ -49,7 +49,7 @@ BasicElement::~BasicElement()
}
BasicElement::BasicElement( const BasicElement& other )
- : tqparent( 0 ),
+ : parent( 0 ),
m_baseline( other.m_baseline ),
elementType( other.elementType )
{
@@ -63,14 +63,14 @@ BasicElement::BasicElement( const BasicElement& other )
bool BasicElement::readOnly( const BasicElement* /*child*/ ) const
{
- return tqparent->readOnly( this );
+ return parent->readOnly( this );
}
FormulaElement* BasicElement::formula()
{
- //if ( tqparent != 0 ) {
- return tqparent->formula();
+ //if ( parent != 0 ) {
+ return parent->formula();
//}
//return 0;
}
@@ -99,7 +99,7 @@ LuPixelPoint BasicElement::widgetPos()
{
luPixel x = 0;
luPixel y = 0;
- for (BasicElement* element = this; element != 0; element = element->tqparent) {
+ for (BasicElement* element = this; element != 0; element = element->parent) {
x += element->getX();
y += element->getY();
}
@@ -174,12 +174,12 @@ TQDomElement BasicElement::getElementDom( TQDomDocument& doc)
}
-void BasicElement::writeMathML( TQDomDocument& doc, TQDomNode& tqparent, bool oasisFormat ) const
+void BasicElement::writeMathML( TQDomDocument& doc, TQDomNode& parent, bool oasisFormat ) const
{
TQDomElement de = doc.createElement( oasisFormat ? "math:" + getElementName() : getElementName() );
writeMathMLAttributes( de );
writeMathMLContent( doc, de, oasisFormat );
- tqparent.appendChild( de );
+ parent.appendChild( de );
}
bool BasicElement::buildFromDom(TQDomElement element)