diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | b6edfe41c9395f2e20784cbf0e630af6426950a3 (patch) | |
tree | 56ed9b871d4296e6c15949c24e16420be1b28697 /lib/kformula/sequenceelement.cc | |
parent | ef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff) | |
download | koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kformula/sequenceelement.cc')
-rw-r--r-- | lib/kformula/sequenceelement.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/kformula/sequenceelement.cc b/lib/kformula/sequenceelement.cc index 46c00817..78a95d95 100644 --- a/lib/kformula/sequenceelement.cc +++ b/lib/kformula/sequenceelement.cc @@ -129,10 +129,10 @@ BasicElement* SequenceElement::goToPos( FormulaCursor* cursor, bool& handled, if (!handled) { handled = true; if ((point.x() - myPos.x()) < (e->getX() + e->getWidth()*2/3)) { - cursor->setTo(this, tqchildren.tqfind(e)); + cursor->setTo(this, tqchildren.find(e)); } else { - cursor->setTo(this, tqchildren.tqfind(e)+1); + cursor->setTo(this, tqchildren.find(e)+1); } } return e; @@ -482,7 +482,7 @@ void SequenceElement::moveLeft(FormulaCursor* cursor, BasicElement* from) // The cursor came from one of our tqchildren or // something is wrong. else { - int fromPos = tqchildren.tqfind(from); + int fromPos = tqchildren.find(from); if ( fromPos > 0 ) { tqchildren.at( fromPos - 1)->moveLeft( cursor, this ); } @@ -533,7 +533,7 @@ void SequenceElement::moveRight(FormulaCursor* cursor, BasicElement* from) // The cursor came from one of our tqchildren or // something is wrong. else { - int fromPos = tqchildren.tqfind(from); + int fromPos = tqchildren.find(from); if ( fromPos < tqchildren.count() - 1 ) { tqchildren.at( fromPos + 1 )->moveDown( cursor, this ); } @@ -658,7 +658,7 @@ void SequenceElement::moveHome(FormulaCursor* cursor) while (element->getParent() != this) { element = element->getParent(); } - cursor->setMark(tqchildren.tqfind(element)+1); + cursor->setMark(tqchildren.find(element)+1); } } cursor->setTo(this, 0); @@ -681,7 +681,7 @@ void SequenceElement::moveEnd(FormulaCursor* cursor) } } if (element != 0) { - cursor->setMark(tqchildren.tqfind(element)); + cursor->setMark(tqchildren.find(element)); } } } @@ -735,7 +735,7 @@ bool SequenceElement::insert( uint index, BasicElement *child ) */ // void SequenceElement::removeChild(FormulaCursor* cursor, BasicElement* child) // { -// int pos = tqchildren.tqfind(child); +// int pos = tqchildren.find(child); // formula()->elementRemoval(child, pos); // cursor->setTo(this, pos); // tqchildren.remove(pos); @@ -890,7 +890,7 @@ BasicElement* SequenceElement::getChild( FormulaCursor* cursor, Direction direct */ void SequenceElement::selectChild(FormulaCursor* cursor, BasicElement* child) { - int pos = tqchildren.tqfind(child); + int pos = tqchildren.find(child); if (pos > -1) { cursor->setTo(this, pos+1, pos); } @@ -898,7 +898,7 @@ void SequenceElement::selectChild(FormulaCursor* cursor, BasicElement* child) void SequenceElement::childWillVanish(FormulaCursor* cursor, BasicElement* child) { - int childPos = tqchildren.tqfind(child); + int childPos = tqchildren.find(child); if (childPos > -1) { int pos = cursor->getPos(); if (pos > childPos) { @@ -1182,7 +1182,7 @@ KCommand* SequenceElement::buildCommand( Container* container, Request* request if ((element != 0) && !element->isSymbol()) { cursor->selectActiveElement(); const SymbolTable& table = container->document()->getSymbolTable(); - if (table.greekLetters().tqfind(element->getCharacter()) != -1) { + if (table.greekLetters().find(element->getCharacter()) != -1) { KFCReplace* command = new KFCReplace( i18n( "Change Char to Symbol" ), container ); TextElement* symbol = creationStrategy->createTextElement( table.tqunicodeFromSymbolFont( element->getCharacter() ), true ); command->addElement( symbol ); |