diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 04766b207afba7961d4d802313e426f5a2fbef63 (patch) | |
tree | c888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /lib/kformula/kformulacommand.cc | |
parent | b6edfe41c9395f2e20784cbf0e630af6426950a3 (diff) | |
download | koffice-04766b207afba7961d4d802313e426f5a2fbef63.tar.gz koffice-04766b207afba7961d4d802313e426f5a2fbef63.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kformula/kformulacommand.cc')
-rw-r--r-- | lib/kformula/kformulacommand.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/kformula/kformulacommand.cc b/lib/kformula/kformulacommand.cc index 178ec399..267038c4 100644 --- a/lib/kformula/kformulacommand.cc +++ b/lib/kformula/kformulacommand.cc @@ -220,7 +220,7 @@ void KFCAddToken::unexecute() { kdDebug( DEBUGID ) << k_funcinfo << endl; FormulaCursor* cursor = getUnexecuteCursor(); - SequenceElement* tqparent = static_cast<SequenceElement*>(cursor->getElement()->getParent()); + SequenceElement* parent = static_cast<SequenceElement*>(cursor->getElement()->getParent()); for ( int i = 0; i < tokenList.count(); i++ ) { SequenceElement* current = static_cast<SequenceElement*>(cursor->getElement()); @@ -228,12 +228,12 @@ void KFCAddToken::unexecute() for ( uint i = 0; i < current->countChildren(); ++i ) { cursor->remove( list, beforeCursor ); } - if ( tqparent ) { - int pos = tqparent->childPos( current ); - cursor->setTo( tqparent, pos + 1); + if ( parent ) { + int pos = parent->childPos( current ); + cursor->setTo( parent, pos + 1); cursor->remove( list, beforeCursor ); if ( pos > 0 ) { - BasicElement* element = tqparent->getChild( pos - 1 ); + BasicElement* element = parent->getChild( pos - 1 ); if (element) element->moveEnd( cursor ); } @@ -306,9 +306,9 @@ void KFCSplitToken::execute() removeSelection->execute(); } splitCursor = cursor->getCursorData(); - SequenceElement* tqparent = static_cast<SequenceElement*>( cursor->getElement() ); - if ( tqparent ) { - cursor->setMark( tqparent->countChildren() ); + SequenceElement* parent = static_cast<SequenceElement*>( cursor->getElement() ); + if ( parent ) { + cursor->setMark( parent->countChildren() ); cursor->setSelection( true ); } cursor->remove( splitList, afterCursor ); @@ -322,8 +322,8 @@ void KFCSplitToken::execute() } KFCAddToken::execute(); cursor = getExecuteCursor(); - if ( tqparent ) { - BasicElement* child = tqparent->getChild( cursor->getPos() ); + if ( parent ) { + BasicElement* child = parent->getChild( cursor->getPos() ); if ( child ) { child->moveEnd( cursor ); } |