summaryrefslogtreecommitdiffstats
path: root/lib/kformula/matrixelement.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kformula/matrixelement.cc')
-rw-r--r--lib/kformula/matrixelement.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/kformula/matrixelement.cc b/lib/kformula/matrixelement.cc
index 38020904..56062dcd 100644
--- a/lib/kformula/matrixelement.cc
+++ b/lib/kformula/matrixelement.cc
@@ -866,22 +866,22 @@ bool MatrixElement::readAttributesFromMathMLDom( const TQDomElement& element )
TQString alignStr = element.attribute( "align" ).lower();
if ( ! alignStr.isNull() ) {
- if ( alignStr.tqfind( "top" ) != -1 ) {
+ if ( alignStr.find( "top" ) != -1 ) {
m_align = TopAlign;
}
- else if ( alignStr.tqfind( "bottom" ) != -1 ) {
+ else if ( alignStr.find( "bottom" ) != -1 ) {
m_align = BottomAlign;
}
- else if ( alignStr.tqfind( "center" ) != -1 ) {
+ else if ( alignStr.find( "center" ) != -1 ) {
m_align = CenterAlign;
}
- else if ( alignStr.tqfind( "baseline" ) != -1 ) {
+ else if ( alignStr.find( "baseline" ) != -1 ) {
m_align = BaselineAlign;
}
- else if ( alignStr.tqfind( "axis" ) != -1 ) {
+ else if ( alignStr.find( "axis" ) != -1 ) {
m_align = AxisAlign;
}
- int index = alignStr.tqfindRev( ' ' );
+ int index = alignStr.findRev( ' ' );
if ( index != -1 ) {
m_rowNumber = alignStr.right( index + 1 ).toInt();
}
@@ -1891,7 +1891,7 @@ void KFCNewLine::execute()
{
FormulaCursor* cursor = getExecuteCursor();
MultilineElement* tqparent = static_cast<MultilineElement*>( m_line->getParent() );
- int linePos = tqparent->content.tqfind( m_line );
+ int linePos = tqparent->content.find( m_line );
tqparent->content.insert( linePos+1, m_newline );
// If there are tqchildren to be moved.
@@ -1926,7 +1926,7 @@ void KFCNewLine::unexecute()
{
FormulaCursor* cursor = getExecuteCursor();
MultilineElement* tqparent = static_cast<MultilineElement*>( m_line->getParent() );
- int linePos = tqparent->content.tqfind( m_line );
+ int linePos = tqparent->content.find( m_line );
// Now the command owns the new line again.
m_newline = tqparent->content.at( linePos+1 );
@@ -2225,7 +2225,7 @@ void MultilineElement::moveLeft( FormulaCursor* cursor, BasicElement* from )
else {
// Coming from one of the lines we go to the previous line
// or to the tqparent if there is none.
- int pos = content.tqfind( static_cast<MultilineSequenceElement*>( from ) );
+ int pos = content.find( static_cast<MultilineSequenceElement*>( from ) );
if ( pos > -1 ) {
if ( pos > 0 ) {
content.at( pos-1 )->moveLeft( cursor, this );
@@ -2252,7 +2252,7 @@ void MultilineElement::moveRight( FormulaCursor* cursor, BasicElement* from )
content.at( 0 )->moveRight(cursor, this);
}
else {
- int pos = content.tqfind( static_cast<MultilineSequenceElement*>( from ) );
+ int pos = content.find( static_cast<MultilineSequenceElement*>( from ) );
if ( pos > -1 ) {
uint upos = pos;
if ( upos < content.count() ) {
@@ -2287,7 +2287,7 @@ void MultilineElement::moveUp( FormulaCursor* cursor, BasicElement* from )
else {
// Coming from one of the lines we go to the previous line
// or to the tqparent if there is none.
- int pos = content.tqfind( static_cast<MultilineSequenceElement*>( from ) );
+ int pos = content.find( static_cast<MultilineSequenceElement*>( from ) );
if ( pos > -1 ) {
if ( pos > 0 ) {
//content.at( pos-1 )->moveLeft( cursor, this );
@@ -2343,7 +2343,7 @@ void MultilineElement::moveDown( FormulaCursor* cursor, BasicElement* from )
content.at( 0 )->moveRight(cursor, this);
}
else {
- int pos = content.tqfind( static_cast<MultilineSequenceElement*>( from ) );
+ int pos = content.find( static_cast<MultilineSequenceElement*>( from ) );
if ( pos > -1 ) {
uint upos = pos;
if ( upos < content.count() ) {
@@ -2566,7 +2566,7 @@ SequenceElement* MultilineElement::getMainChild()
void MultilineElement::selectChild(FormulaCursor* cursor, BasicElement* child)
{
- int pos = content.tqfind( dynamic_cast<MultilineSequenceElement*>( child ) );
+ int pos = content.find( dynamic_cast<MultilineSequenceElement*>( child ) );
if ( pos > -1 ) {
cursor->setTo( this, pos );
//content.at( pos )->moveRight( cursor, this );