summaryrefslogtreecommitdiffstats
path: root/lib/kformula/identifierelement.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kformula/identifierelement.cc')
-rw-r--r--lib/kformula/identifierelement.cc40
1 files changed, 20 insertions, 20 deletions
diff --git a/lib/kformula/identifierelement.cc b/lib/kformula/identifierelement.cc
index 324151d5..41cd2600 100644
--- a/lib/kformula/identifierelement.cc
+++ b/lib/kformula/identifierelement.cc
@@ -32,13 +32,13 @@
KFORMULA_NAMESPACE_BEGIN
-IdentifierElement::IdentifierElement( BasicElement* tqparent ) : TokenElement( tqparent ) {}
+IdentifierElement::IdentifierElement( BasicElement* parent ) : TokenElement( parent ) {}
/*
* 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* 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 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 );
}
}
@@ -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 tqparent so that it command execution works fine
+ // d) Move cursor to parent 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* 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;
}
@@ -114,9 +114,9 @@ KCommand* IdentifierElement::buildCommand( Container* container, Request* reques
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;
}