diff options
Diffstat (limited to 'lib/kformula/identifierelement.cc')
| -rw-r--r-- | lib/kformula/identifierelement.cc | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/lib/kformula/identifierelement.cc b/lib/kformula/identifierelement.cc index a457403a5..324151d5d 100644 --- a/lib/kformula/identifierelement.cc +++ b/lib/kformula/identifierelement.cc @@ -32,13 +32,13 @@ KFORMULA_NAMESPACE_BEGIN -IdentifierElement::IdentifierElement( BasicElement* parent ) : TokenElement( parent ) {} +IdentifierElement::IdentifierElement( BasicElement* tqparent ) : TokenElement( tqparent ) {} /* * Token elements' content has to be of homogeneous type. Every token element * must (TODO: check this) appear inside a non-token sequence, and thus, if * the command asks for a different content, a new element has to be created in - * parent sequence. + * tqparent sequence. */ KCommand* IdentifierElement::buildCommand( Container* container, Request* request ) { @@ -67,21 +67,21 @@ KCommand* IdentifierElement::buildCommand( Container* container, Request* reques } if ( countChildren() == 0 || cursor->getPos() == countChildren() ) { - // We are in the last position, so it's easy, call the parent to + // We are in the last position, so it's easy, call the tqparent to // create a new child - SequenceElement* parent = static_cast<SequenceElement*>( getParent() ); - if ( parent ) { - uint pos = parent->childPos( this ); - cursor->setTo( parent, pos + 1); - return parent->buildCommand( container, request ); + SequenceElement* tqparent = static_cast<SequenceElement*>( getParent() ); + if ( tqparent ) { + uint pos = tqparent->childPos( this ); + cursor->setTo( tqparent, pos + 1); + return tqparent->buildCommand( container, request ); } } if ( cursor->getPos() == 0 ) { - SequenceElement* parent = static_cast<SequenceElement*>( getParent() ); - if ( parent ) { - uint pos = parent->childPos( this ); - cursor->setTo( parent, pos ); - return parent->buildCommand( container, request ); + SequenceElement* tqparent = static_cast<SequenceElement*>( getParent() ); + if ( tqparent ) { + uint pos = tqparent->childPos( this ); + cursor->setTo( tqparent, pos ); + return tqparent->buildCommand( container, request ); } } @@ -89,7 +89,7 @@ KCommand* IdentifierElement::buildCommand( Container* container, Request* reques // a) Cut from mark to the end // b) Create a new token and add an element from key pressed // c) Create a new token and add elements cut previously - // d) Move cursor to parent so that it command execution works fine + // d) Move cursor to tqparent so that it command execution works fine switch( *request ) { case req_addOperator: { @@ -100,9 +100,9 @@ KCommand* IdentifierElement::buildCommand( Container* container, Request* reques command->addCursor( cursor ); command->addToken( op ); command->addContent( op, text ); - SequenceElement* parent = static_cast< SequenceElement* >( getParent() ); - if ( parent ) { - cursor->setTo( parent, parent->childPos( this ) + 1 ); + SequenceElement* tqparent = static_cast< SequenceElement* >( getParent() ); + if ( tqparent ) { + cursor->setTo( tqparent, tqparent->childPos( this ) + 1 ); } return command; } @@ -114,9 +114,9 @@ KCommand* IdentifierElement::buildCommand( Container* container, Request* reques command->addCursor( cursor ); command->addToken( num ); command->addContent( num, text ); - SequenceElement* parent = static_cast< SequenceElement* >( getParent() ); - if ( parent ) { - cursor->setTo( parent, parent->childPos( this ) + 1 ); + SequenceElement* tqparent = static_cast< SequenceElement* >( getParent() ); + if ( tqparent ) { + cursor->setTo( tqparent, tqparent->childPos( this ) + 1 ); } return command; } @@ -159,7 +159,7 @@ void IdentifierElement::setStyleVariant( StyleAttributes& style ) style.setCustomMathVariant( false ); if ( customFontFamily() ) { style.setCustomFont( true ); - style.setFont( QFont(fontFamily()) ); + style.setFont( TQFont(fontFamily()) ); } bool fontweight = false; |
