summaryrefslogtreecommitdiffstats
path: root/lib/kformula/operatorelement.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kformula/operatorelement.cc')
-rw-r--r--lib/kformula/operatorelement.cc46
1 files changed, 23 insertions, 23 deletions
diff --git a/lib/kformula/operatorelement.cc b/lib/kformula/operatorelement.cc
index a9deab3c..66c1fcdc 100644
--- a/lib/kformula/operatorelement.cc
+++ b/lib/kformula/operatorelement.cc
@@ -39,7 +39,7 @@
KFORMULA_NAMESPACE_BEGIN
-OperatorElement::OperatorElement( BasicElement* tqparent ) : TokenElement( tqparent ),
+OperatorElement::OperatorElement( BasicElement* parent ) : TokenElement( parent ),
m_form( NoForm ),
m_lspaceType( ThickMathSpace ),
m_rspaceType( ThickMathSpace ),
@@ -159,7 +159,7 @@ void OperatorElement::setForm( FormType type )
* 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
- * tqparent sequence.
+ * parent sequence.
*/
KCommand* OperatorElement::buildCommand( Container* container, Request* request )
{
@@ -178,21 +178,21 @@ KCommand* OperatorElement::buildCommand( Container* container, Request* request
}
if ( countChildren() == 0 || cursor->getPos() == countChildren() ) {
- // We are in the last position, so it's easy, call the tqparent to
+ // We are in the last position, so it's easy, call the parent to
// create a new child
- SequenceElement* tqparent = static_cast<SequenceElement*>( getParent() );
- if ( tqparent ) {
- uint pos = tqparent->childPos( this );
- cursor->setTo( tqparent, pos + 1);
- return tqparent->buildCommand( container, request );
+ SequenceElement* parent = static_cast<SequenceElement*>( getParent() );
+ if ( parent ) {
+ uint pos = parent->childPos( this );
+ cursor->setTo( parent, pos + 1);
+ return parent->buildCommand( container, request );
}
}
if ( cursor->getPos() == 0 ) {
- SequenceElement* tqparent = static_cast<SequenceElement*>( getParent() );
- if ( tqparent ) {
- uint pos = tqparent->childPos( this );
- cursor->setTo( tqparent, pos );
- return tqparent->buildCommand( container, request );
+ SequenceElement* parent = static_cast<SequenceElement*>( getParent() );
+ if ( parent ) {
+ uint pos = parent->childPos( this );
+ cursor->setTo( parent, pos );
+ return parent->buildCommand( container, request );
}
}
@@ -200,7 +200,7 @@ KCommand* OperatorElement::buildCommand( Container* container, Request* request
// 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 tqparent so that it command execution works fine
+ // d) Move cursor to parent so that it command execution works fine
switch( *request ) {
case req_addTextChar: {
@@ -211,9 +211,9 @@ KCommand* OperatorElement::buildCommand( Container* container, Request* request
command->addCursor( cursor );
command->addToken( id );
command->addContent( id, text );
- SequenceElement* tqparent = static_cast< SequenceElement* >( getParent() );
- if ( tqparent ) {
- cursor->setTo( tqparent, tqparent->childPos( this ) + 1 );
+ SequenceElement* parent = static_cast< SequenceElement* >( getParent() );
+ if ( parent ) {
+ cursor->setTo( parent, parent->childPos( this ) + 1 );
}
return command;
}
@@ -228,9 +228,9 @@ KCommand* OperatorElement::buildCommand( Container* container, Request* request
TextElement* text = creationStrategy->createTextElement( tr->text()[i] );
command->addContent( id, text );
}
- SequenceElement* tqparent = static_cast< SequenceElement* >( getParent() );
- if ( tqparent ) {
- cursor->setTo( tqparent, tqparent->childPos( this ) + 1 );
+ SequenceElement* parent = static_cast< SequenceElement* >( getParent() );
+ if ( parent ) {
+ cursor->setTo( parent, parent->childPos( this ) + 1 );
}
return command;
}
@@ -243,9 +243,9 @@ KCommand* OperatorElement::buildCommand( Container* container, Request* request
command->addCursor( cursor );
command->addToken( num );
command->addContent( num, text );
- SequenceElement* tqparent = static_cast< SequenceElement* >( getParent() );
- if ( tqparent ) {
- cursor->setTo( tqparent, tqparent->childPos( this ) + 1 );
+ SequenceElement* parent = static_cast< SequenceElement* >( getParent() );
+ if ( parent ) {
+ cursor->setTo( parent, parent->childPos( this ) + 1 );
}
return command;
}