diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdecore/kcalendarsystem.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/kcalendarsystem.cpp')
-rw-r--r-- | kdecore/kcalendarsystem.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kdecore/kcalendarsystem.cpp b/kdecore/kcalendarsystem.cpp index 150dbda1b..57898da84 100644 --- a/kdecore/kcalendarsystem.cpp +++ b/kdecore/kcalendarsystem.cpp @@ -52,9 +52,9 @@ const KLocale * KCalendarSystem::locale() const return KGlobal::locale(); } -QString KCalendarSystem::dayString(const QDate & pDate, bool bShort) const +TQString KCalendarSystem::dayString(const TQDate & pDate, bool bShort) const { - QString sResult; + TQString sResult; sResult.setNum(day(pDate)); if (!bShort && sResult.length() == 1 ) @@ -63,9 +63,9 @@ QString KCalendarSystem::dayString(const QDate & pDate, bool bShort) const return sResult; } -QString KCalendarSystem::monthString(const QDate & pDate, bool bShort) const +TQString KCalendarSystem::monthString(const TQDate & pDate, bool bShort) const { - QString sResult; + TQString sResult; sResult.setNum(month(pDate)); if (!bShort && sResult.length() == 1 ) @@ -74,9 +74,9 @@ QString KCalendarSystem::monthString(const QDate & pDate, bool bShort) const return sResult; } -QString KCalendarSystem::yearString(const QDate & pDate, bool bShort) const +TQString KCalendarSystem::yearString(const TQDate & pDate, bool bShort) const { - QString sResult; + TQString sResult; sResult.setNum(year(pDate)); if (bShort && sResult.length() == 4 ) @@ -85,7 +85,7 @@ QString KCalendarSystem::yearString(const QDate & pDate, bool bShort) const return sResult; } -static int stringToInteger(const QString & sNum, int & iLength) +static int stringToInteger(const TQString & sNum, int & iLength) { unsigned int iPos = 0; @@ -101,22 +101,22 @@ static int stringToInteger(const QString & sNum, int & iLength) } -int KCalendarSystem::dayStringToInteger(const QString & sNum, int & iLength) const +int KCalendarSystem::dayStringToInteger(const TQString & sNum, int & iLength) const { return stringToInteger(sNum, iLength); } -int KCalendarSystem::monthStringToInteger(const QString & sNum, int & iLength) const +int KCalendarSystem::monthStringToInteger(const TQString & sNum, int & iLength) const { return stringToInteger(sNum, iLength); } -int KCalendarSystem::yearStringToInteger(const QString & sNum, int & iLength) const +int KCalendarSystem::yearStringToInteger(const TQString & sNum, int & iLength) const { return stringToInteger(sNum, iLength); } -QString KCalendarSystem::weekDayName (int weekDay, bool shortName) const +TQString KCalendarSystem::weekDayName (int weekDay, bool shortName) const { if ( shortName ) switch ( weekDay ) @@ -141,6 +141,6 @@ QString KCalendarSystem::weekDayName (int weekDay, bool shortName) const case 7: return locale()->translate("Sunday"); } - return QString::null; + return TQString::null; } |