diff options
Diffstat (limited to 'lib/kformula/paddedelement.cc')
-rw-r--r-- | lib/kformula/paddedelement.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/kformula/paddedelement.cc b/lib/kformula/paddedelement.cc index d84bb064..5270a4f7 100644 --- a/lib/kformula/paddedelement.cc +++ b/lib/kformula/paddedelement.cc @@ -152,55 +152,55 @@ double PaddedElement::readSizeAttribute( const TQString& str, SizeType* st, bool if ( str[0] == '+' || str[0] == '-' ) { *relative = true; } - int index = str.tqfind( "width" ); + int index = str.find( "width" ); if ( index != -1 ) { - int index2 = str.tqfind( "%" ); + int index2 = str.find( "%" ); if ( index2 != -1 ) { return str2size( str.left( index2 ).stripWhiteSpace(), st, WidthRelativeSize ) / 100.0; } return str2size( str.left( index ).stripWhiteSpace(), st, WidthRelativeSize ); } - index = str.tqfind( "height" ); + index = str.find( "height" ); if ( index != -1 ) { - int index2 = str.tqfind( "%" ); + int index2 = str.find( "%" ); if ( index2 != -1 ) { return str2size( str.left( index2 ).stripWhiteSpace(), st, HeightRelativeSize ) / 100.0; } return str2size( str.left( index ).stripWhiteSpace(), st, HeightRelativeSize ); } - index = str.tqfind( "%" ); + index = str.find( "%" ); if ( index != -1 ) { return str2size( str.left( index ).stripWhiteSpace(), st, RelativeSize ) / 100.0; } - index = str.tqfind( "pt", 0, false ); + index = str.find( "pt", 0, false ); if ( index != -1 ) { return str2size( str.left( index ).stripWhiteSpace(), st, AbsoluteSize ); } - index = str.tqfind( "mm", 0, false ); + index = str.find( "mm", 0, false ); if ( index != -1 ) { return str2size( str.left( index ).stripWhiteSpace(), st, AbsoluteSize ) * 72.0 / 20.54; } - index = str.tqfind( "cm", 0, false ); + index = str.find( "cm", 0, false ); if ( index != -1 ) { return str2size( str.left( index ).stripWhiteSpace(), st, AbsoluteSize ) * 72.0 / 2.54; } - index = str.tqfind( "in", 0, false ); + index = str.find( "in", 0, false ); if ( index != -1 ) { return str2size( str.left( index ).stripWhiteSpace(), st, AbsoluteSize ) * 72.0; } - index = str.tqfind( "em", 0, false ); + index = str.find( "em", 0, false ); if ( index != -1 ) { return str2size( str.left( index ).stripWhiteSpace(), st, RelativeSize ); } - index = str.tqfind( "ex", 0, false ); + index = str.find( "ex", 0, false ); if ( index != -1 ) { return str2size( str.left( index ).stripWhiteSpace(), st, RelativeSize ); } - index = str.tqfind( "pc", 0, false ); + index = str.find( "pc", 0, false ); if ( index != -1 ) { return str2size( str.left( index ).stripWhiteSpace(), st, AbsoluteSize ) * 12.0; } - index = str.tqfind( "px", 0, false ); + index = str.find( "px", 0, false ); if ( index != -1 ) { return str2size( str.left( index ).stripWhiteSpace(), st, PixelSize ); } |