summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoPageLayout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kofficecore/KoPageLayout.cpp')
-rw-r--r--lib/kofficecore/KoPageLayout.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kofficecore/KoPageLayout.cpp b/lib/kofficecore/KoPageLayout.cpp
index 05eff10ba..d01ca6db3 100644
--- a/lib/kofficecore/KoPageLayout.cpp
+++ b/lib/kofficecore/KoPageLayout.cpp
@@ -198,15 +198,15 @@ KoFormat KoPageFormat::guessFormat( double width, double height )
TQString KoPageFormat::formatString( KoFormat format )
{
if ( format <= PG_LAST_FORMAT )
- return TQString::tqfromLatin1( pageFormatInfo[ format ].shortName );
- return TQString::tqfromLatin1( "A4" );
+ return TQString::fromLatin1( pageFormatInfo[ format ].shortName );
+ return TQString::fromLatin1( "A4" );
}
KoFormat KoPageFormat::formatFromString( const TQString & string )
{
for ( int i = 0 ; i <= PG_LAST_FORMAT ; ++i )
{
- if (string == TQString::tqfromLatin1( pageFormatInfo[ i ].shortName ))
+ if (string == TQString::fromLatin1( pageFormatInfo[ i ].shortName ))
return pageFormatInfo[ i ].format;
}
// We do not know the format name, so we have a custom format