diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-28 22:31:39 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-28 22:31:39 -0600 |
commit | 41bb408dde90e755b07cd2ab8a9bdec7548c84b0 (patch) | |
tree | 6d4d5407c000add30aa78630e009c0e5d633e440 /src/tools/qdatetime.cpp | |
parent | 1740cd279522c060e738bbbffacab83355d2b794 (diff) | |
download | tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.tar.gz tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.zip |
Automated conversion from qt3
Diffstat (limited to 'src/tools/qdatetime.cpp')
-rw-r--r-- | src/tools/qdatetime.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/tools/qdatetime.cpp b/src/tools/qdatetime.cpp index d1358cc87..00eba97d3 100644 --- a/src/tools/qdatetime.cpp +++ b/src/tools/qdatetime.cpp @@ -513,7 +513,7 @@ TQString TQDate::shortMonthName( int month ) { #if defined(QT_CHECK_RANGE) if ( month < 1 || month > 12 ) { - qWarning( "TQDate::shortMonthName: Parameter out ouf range" ); + tqWarning( "TQDate::shortMonthName: Parameter out ouf range" ); month = 1; } #endif @@ -559,7 +559,7 @@ TQString TQDate::longMonthName( int month ) { #if defined(QT_CHECK_RANGE) if ( month < 1 || month > 12 ) { - qWarning( "TQDate::longMonthName: Parameter out ouf range" ); + tqWarning( "TQDate::longMonthName: Parameter out ouf range" ); month = 1; } #endif @@ -613,7 +613,7 @@ TQString TQDate::shortDayName( int weekday ) { #if defined(QT_CHECK_RANGE) if ( weekday < 1 || weekday > 7 ) { - qWarning( "TQDate::shortDayName: Parameter out of range" ); + tqWarning( "TQDate::shortDayName: Parameter out of range" ); weekday = 1; } #endif @@ -661,7 +661,7 @@ TQString TQDate::longDayName( int weekday ) { #if defined(QT_CHECK_RANGE) if ( weekday < 1 || weekday > 7 ) { - qWarning( "TQDate::longDayName: Parameter out of range" ); + tqWarning( "TQDate::longDayName: Parameter out of range" ); weekday = 1; } #endif @@ -850,7 +850,7 @@ bool TQDate::setYMD( int y, int m, int d ) return isValid(); if ( !isValid(y,m,d) ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQDate::setYMD: Invalid date %04d-%02d-%02d", y, m, d ); + tqWarning( "TQDate::setYMD: Invalid date %04d-%02d-%02d", y, m, d ); #endif return FALSE; } @@ -1073,7 +1073,7 @@ TQDate TQDate::fromString( const TQString& s, TQt::DateFormat f ) { if ( ( s.isEmpty() ) || ( f == TQt::LocalDate ) ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQDate::fromString: Parameter out of range" ); + tqWarning( "TQDate::fromString: Parameter out of range" ); #endif TQDate d; d.jd = 0; @@ -1122,7 +1122,7 @@ TQDate TQDate::fromString( const TQString& s, TQt::DateFormat f ) } #if defined(QT_CHECK_RANGE) if ( month < 1 || month > 12 ) { - qWarning( "TQDate::fromString: Parameter out of range" ); + tqWarning( "TQDate::fromString: Parameter out of range" ); TQDate d; d.jd = 0; return d; @@ -1493,7 +1493,7 @@ bool TQTime::setHMS( int h, int m, int s, int ms ) { if ( !isValid(h,m,s,ms) ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQTime::setHMS Invalid time %02d:%02d:%02d.%03d", h, m, s, + tqWarning( "TQTime::setHMS Invalid time %02d:%02d:%02d.%03d", h, m, s, ms ); #endif ds = MSECS_PER_DAY; // make this invalid @@ -1664,7 +1664,7 @@ TQTime TQTime::fromString( const TQString& s, TQt::DateFormat f ) { if ( ( s.isEmpty() ) || ( f == TQt::LocalDate ) ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQTime::fromString: Parameter out of range" ); + tqWarning( "TQTime::fromString: Parameter out of range" ); #endif TQTime t; t.ds = MSECS_PER_DAY; @@ -1708,7 +1708,7 @@ bool TQTime::currentTime( TQTime *ct, TQt::TimeSpec ts ) { if ( !ct ) { #if defined(QT_CHECK_NULL) - qWarning( "TQTime::currentTime(TQTime *): Null pointer not allowed" ); + tqWarning( "TQTime::currentTime(TQTime *): Null pointer not allowed" ); #endif return FALSE; } @@ -1789,7 +1789,7 @@ bool TQTime::isValid( int h, int m, int s, int ms ) TQTime t; t.start(); some_lengthy_task(); - qDebug( "Time elapsed: %d ms", t.elapsed() ); + tqDebug( "Time elapsed: %d ms", t.elapsed() ); \endcode \sa restart(), elapsed(), currentTime() @@ -2320,7 +2320,7 @@ int TQDateTime::daysTo( const TQDateTime &dt ) const \code TQDateTime dt = TQDateTime::currentDateTime(); TQDateTime xmas( TQDate(dt.date().year(),12,24), TQTime(17,00) ); - qDebug( "There are %d seconds to Christmas", dt.secsTo(xmas) ); + tqDebug( "There are %d seconds to Christmas", dt.secsTo(xmas) ); \endcode \sa addSecs(), daysTo(), TQTime::secsTo() @@ -2449,7 +2449,7 @@ TQDateTime TQDateTime::fromString( const TQString& s, TQt::DateFormat f ) { if ( ( s.isEmpty() ) || ( f == TQt::LocalDate ) ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQDateTime::fromString: Parameter out of range" ); + tqWarning( "TQDateTime::fromString: Parameter out of range" ); #endif TQDateTime dt; dt.d.jd = 0; @@ -2482,7 +2482,7 @@ TQDateTime TQDateTime::fromString( const TQString& s, TQt::DateFormat f ) } #if defined(QT_CHECK_RANGE) if ( month < 1 || month > 12 ) { - qWarning( "TQDateTime::fromString: Parameter out of range" ); + tqWarning( "TQDateTime::fromString: Parameter out of range" ); TQDateTime dt; dt.d.jd = 0; return dt; |