diff options
Diffstat (limited to 'lib/kotext/IsoDuration.h')
-rw-r--r-- | lib/kotext/IsoDuration.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/kotext/IsoDuration.h b/lib/kotext/IsoDuration.h index dbeef450..6ccb2891 100644 --- a/lib/kotext/IsoDuration.h +++ b/lib/kotext/IsoDuration.h @@ -16,38 +16,38 @@ * Boston, MA 02110-1301, USA. */ -#include <qstring.h> +#include <tqstring.h> /** * Routines for converting to and from the ISO-8601 duration format * http://www.w3.org/TR/xmlschema-2/datatypes.html#duration * - * This is not the ISO time format supported by Qt (HH:MM:SS), + * This is not the ISO time format supported by TQt (HH:MM:SS), * it's PT1H15M12S for 1:15:12. * */ -static QString minutesToISODuration( int mn ) +static TQString minutesToISODuration( int mn ) { bool neg = mn < 0; // PT == period of time - see ISO8601 - QString str = QString::fromLatin1( "PT00H%1M00S" ).arg( QABS( mn ) ); + TQString str = TQString::tqfromLatin1( "PT00H%1M00S" ).tqarg( TQABS( mn ) ); if ( neg ) str.prepend( '-' ); return str; } -static QString daysToISODuration( int days ) +static TQString daysToISODuration( int days ) { bool neg = days < 0; // P == period, time is ommitted - see ISO8601 - QString str = QString::fromLatin1( "P%1D" ).arg( QABS( days ) ); + TQString str = TQString::tqfromLatin1( "P%1D" ).tqarg( TQABS( days ) ); if ( neg ) str.prepend( '-' ); return str; } -static int ISODurationToMinutes( const QString& str ) +static int ISODurationToMinutes( const TQString& str ) { int idx = 0; const int len = str.length(); @@ -77,7 +77,7 @@ static int ISODurationToMinutes( const QString& str ) return neg ? -minutes : minutes; } -static int ISODurationToDays( const QString& str ) +static int ISODurationToDays( const TQString& str ) { int idx = 0; const int len = str.length(); |