diff options
Diffstat (limited to 'krecipes/src/datablocks/mixednumber.cpp')
| -rw-r--r-- | krecipes/src/datablocks/mixednumber.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/krecipes/src/datablocks/mixednumber.cpp b/krecipes/src/datablocks/mixednumber.cpp index 9318567..2de9e57 100644 --- a/krecipes/src/datablocks/mixednumber.cpp +++ b/krecipes/src/datablocks/mixednumber.cpp @@ -11,14 +11,14 @@ #include <ntqregexp.h> -#include <kglobal.h> -#include <klocale.h> +#include <tdeglobal.h> +#include <tdelocale.h> #include <kdebug.h> TQString beautify( const TQString &num ) { TQString copy( num ); - copy.remove( TQRegExp( TQString( "(%1){0,1}0+$" ).arg( TQRegExp::escape( KGlobal::locale() ->decimalSymbol() ) ) ) ); + copy.remove( TQRegExp( TQString( "(%1){0,1}0+$" ).arg( TQRegExp::escape( TDEGlobal::locale() ->decimalSymbol() ) ) ) ); return copy; } @@ -26,18 +26,18 @@ MixedNumber::MixedNumber() : m_whole( 0 ), m_numerator( 0 ), m_denominator( 1 ), - locale( KGlobal::locale() ) + locale( TDEGlobal::locale() ) {} MixedNumber::MixedNumber( int whole, int numerator, int denominator ) : m_whole( whole ), m_numerator( numerator ), m_denominator( denominator ), - locale( KGlobal::locale() ) + locale( TDEGlobal::locale() ) {} MixedNumber::MixedNumber( double decimal, double precision ) : - locale( KGlobal::locale() ) + locale( TDEGlobal::locale() ) { // find nearest fraction int intPart = static_cast<int>( decimal ); @@ -115,7 +115,7 @@ MixedNumber MixedNumber::fromString( const TQString &str, bool *ok, bool locale_ return MixedNumber(); } - KLocale *locale = KGlobal::locale(); + TDELocale *locale = TDEGlobal::locale(); bool num_ok; |
