summaryrefslogtreecommitdiffstats
path: root/lib/kformula/basicelement.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kformula/basicelement.cc')
-rw-r--r--lib/kformula/basicelement.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/kformula/basicelement.cc b/lib/kformula/basicelement.cc
index da961df3..1d36193a 100644
--- a/lib/kformula/basicelement.cc
+++ b/lib/kformula/basicelement.cc
@@ -289,39 +289,39 @@ TQString BasicElement::toLatex()
*/
double BasicElement::getSize( const TQString& str, SizeType* st )
{
- int index = str.tqfind( "%" );
+ int index = str.find( "%" );
if ( index != -1 ) {
return str2size( str, st, index, RelativeSize ) / 100.0;
}
- index = str.tqfind( "pt", 0, false );
+ index = str.find( "pt", 0, false );
if ( index != -1 ) {
return str2size( str, st, index, AbsoluteSize );
}
- index = str.tqfind( "mm", 0, false );
+ index = str.find( "mm", 0, false );
if ( index != -1 ) {
return str2size( str, st, index, AbsoluteSize ) * 72.0 / 20.54;
}
- index = str.tqfind( "cm", 0, false );
+ index = str.find( "cm", 0, false );
if ( index != -1 ) {
return str2size( str, st, index, AbsoluteSize ) * 72.0 / 2.54;
}
- index = str.tqfind( "in", 0, false );
+ index = str.find( "in", 0, false );
if ( index != -1 ) {
return str2size( str, st, index, AbsoluteSize ) * 72.0;
}
- index = str.tqfind( "em", 0, false );
+ index = str.find( "em", 0, false );
if ( index != -1 ) {
return str2size( str, st, index, RelativeSize );
}
- index = str.tqfind( "ex", 0, false );
+ index = str.find( "ex", 0, false );
if ( index != -1 ) {
return str2size( str, st, index, RelativeSize );
}
- index = str.tqfind( "pc", 0, false );
+ index = str.find( "pc", 0, false );
if ( index != -1 ) {
return str2size( str, st, index, AbsoluteSize ) * 12.0;
}
- index = str.tqfind( "px", 0, false );
+ index = str.find( "px", 0, false );
if ( index != -1 ) {
return str2size( str, st, index, PixelSize );
}