diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-10-17 19:46:30 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-10-17 19:46:30 +0900 |
commit | 69d87202cb139ffe9e4b3ce92e434523b7b09b64 (patch) | |
tree | 7b133311a4d5e5394f2612dced305f815c04847b /src/tools/qdatetime.cpp | |
parent | e07baa10b7b8e7105e02a621efadac67216c61ed (diff) | |
download | tqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.tar.gz tqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.zip |
QT_NO_* -> TQT_NO_* renaming.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/tools/qdatetime.cpp')
-rw-r--r-- | src/tools/qdatetime.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/tools/qdatetime.cpp b/src/tools/qdatetime.cpp index 235ba7457..e30f3e75c 100644 --- a/src/tools/qdatetime.cpp +++ b/src/tools/qdatetime.cpp @@ -69,7 +69,7 @@ static const char * const qt_shortMonthNames[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; -#ifndef QT_NO_DATESTRING +#ifndef TQT_NO_DATESTRING /***************************************************************************** Some static function used by TQDate, TQTime and TQDateTime *****************************************************************************/ @@ -125,7 +125,7 @@ static TQString getFmtString( const TQString& f, const TQTime* dt = 0, const TQD buf = TQString::number( dd->month() ); } else if ( f == "MM" ) { buf = TQString::number( dd->month() ).rightJustify( 2, '0', TRUE ); -#ifndef QT_NO_TEXTDATE +#ifndef TQT_NO_TEXTDATE } else if ( f == "ddd" ) { buf = dd->shortDayName( dd->dayOfWeek() ); } else if ( f == "dddd" ) { @@ -195,7 +195,7 @@ static TQString fmtDateTime( const TQString& f, const TQTime* dt = 0, const TQDa return buf; } -#endif // QT_NO_DATESTRING +#endif // TQT_NO_DATESTRING /***************************************************************************** TQDate member functions @@ -497,7 +497,7 @@ int TQDate::weekNumber( int *yearNumber ) const Use shortMonthName() instead. */ -#ifndef QT_NO_TEXTDATE +#ifndef TQT_NO_TEXTDATE /*! Returns the name of the \a month. @@ -693,11 +693,11 @@ TQString TQDate::longDayName( int weekday ) return TQString::null; } -#endif //QT_NO_TEXTDATE +#endif //TQT_NO_TEXTDATE -#ifndef QT_NO_DATESTRING +#ifndef TQT_NO_DATESTRING -#if !defined(QT_NO_SPRINTF) +#if !defined(TQT_NO_SPRINTF) /*! \overload @@ -761,7 +761,7 @@ TQString TQDate::toString( TQt::DateFormat f ) const return TQString::null; } default: -#ifndef QT_NO_TEXTDATE +#ifndef TQT_NO_TEXTDATE case TQt::TextDate: { TQString buf = shortDayName( dayOfWeek() ); @@ -781,7 +781,7 @@ TQString TQDate::toString( TQt::DateFormat f ) const } } } -#endif //QT_NO_SPRINTF +#endif //TQT_NO_SPRINTF /*! Returns the date as a string. The \a format parameter determines @@ -830,7 +830,7 @@ TQString TQDate::toString( const TQString& format ) const { return fmtDateTime( format, 0, this ); } -#endif //QT_NO_DATESTRING +#endif //TQT_NO_DATESTRING /*! Sets the date's year \a y, month \a m and day \a d. @@ -1058,7 +1058,7 @@ TQDate TQDate::currentDate( TQt::TimeSpec ts ) return d; } -#ifndef QT_NO_DATESTRING +#ifndef TQT_NO_DATESTRING /*! Returns the TQDate represented by the string \a s, using the format \a f, or an invalid date if the string cannot be parsed. @@ -1090,7 +1090,7 @@ TQDate TQDate::fromString( const TQString& s, TQt::DateFormat f ) } break; default: -#ifndef QT_NO_TEXTDATE +#ifndef TQT_NO_TEXTDATE case TQt::TextDate: { /* @@ -1138,7 +1138,7 @@ TQDate TQDate::fromString( const TQString& s, TQt::DateFormat f ) } return TQDate(); } -#endif //QT_NO_DATESTRING +#endif //TQT_NO_DATESTRING /*! \overload @@ -1368,8 +1368,8 @@ int TQTime::msec() const return ds % 1000; } -#ifndef QT_NO_DATESTRING -#ifndef QT_NO_SPRINTF +#ifndef TQT_NO_DATESTRING +#ifndef TQT_NO_SPRINTF /*! \overload @@ -1477,7 +1477,7 @@ TQString TQTime::toString( const TQString& format ) const { return fmtDateTime( format, this, 0 ); } -#endif //QT_NO_DATESTRING +#endif //TQT_NO_DATESTRING /*! Sets the time to hour \a h, minute \a m, seconds \a s and milliseconds \a ms. @@ -1653,7 +1653,7 @@ TQTime TQTime::currentTime( TQt::TimeSpec ts ) return t; } -#ifndef QT_NO_DATESTRING +#ifndef TQT_NO_DATESTRING /*! Returns the representation \a s as a TQTime using the format \a f, or an invalid time if this is not possible. @@ -2076,8 +2076,8 @@ void TQDateTime::setTime_t( time_t secsSince1Jan1970UTC, TQt::TimeSpec ts ) MSECS_PER_MIN * brokenDown->tm_min + 1000 * brokenDown->tm_sec; } -#ifndef QT_NO_DATESTRING -#ifndef QT_NO_SPRINTF +#ifndef TQT_NO_DATESTRING +#ifndef TQT_NO_SPRINTF /*! \overload @@ -2110,7 +2110,7 @@ TQString TQDateTime::toString( TQt::DateFormat f ) const if ( f == TQt::ISODate ) { return d.toString( TQt::ISODate ) + "T" + t.toString( TQt::ISODate ); } -#ifndef QT_NO_TEXTDATE +#ifndef TQT_NO_TEXTDATE else if ( f == TQt::TextDate ) { #ifndef Q_WS_WIN TQString buf = d.shortDayName( d.dayOfWeek() ); @@ -2222,7 +2222,7 @@ TQString TQDateTime::toString( const TQString& format ) const { return fmtDateTime( format, &t, &d ); } -#endif //QT_NO_DATESTRING +#endif //TQT_NO_DATESTRING /*! Returns a TQDateTime object containing a datetime \a ndays days @@ -2434,7 +2434,7 @@ TQDateTime TQDateTime::currentDateTime( TQt::TimeSpec ts ) return dt; } -#ifndef QT_NO_DATESTRING +#ifndef TQT_NO_DATESTRING /*! Returns the TQDateTime represented by the string \a s, using the format \a f, or an invalid datetime if this is not possible. @@ -2459,7 +2459,7 @@ TQDateTime TQDateTime::fromString( const TQString& s, TQt::DateFormat f ) return TQDateTime( TQDate::fromString( s.mid(0,10), TQt::ISODate ), TQTime::fromString( s.mid(11), TQt::ISODate ) ); } -#if !defined(QT_NO_REGEXP) && !defined(QT_NO_TEXTDATE) +#if !defined(TQT_NO_REGEXP) && !defined(TQT_NO_TEXTDATE) else if ( f == TQt::TextDate ) { const int firstSpace = s.find(' '); TQString monthName( s.mid( firstSpace + 1, 3 ) ); @@ -2502,17 +2502,17 @@ TQDateTime TQDateTime::fromString( const TQString& s, TQt::DateFormat f ) } return TQDateTime( date, time ); } -#endif //QT_NO_REGEXP +#endif //TQT_NO_REGEXP return TQDateTime(); } -#endif //QT_NO_DATESTRING +#endif //TQT_NO_DATESTRING /***************************************************************************** Date/time stream functions *****************************************************************************/ -#ifndef QT_NO_DATASTREAM +#ifndef TQT_NO_DATASTREAM /*! \relates TQDate @@ -2597,4 +2597,4 @@ TQDataStream &operator>>( TQDataStream &s, TQDateTime &dt ) s >> dt.d >> dt.t; return s; } -#endif //QT_NO_DATASTREAM +#endif //TQT_NO_DATASTREAM |