summaryrefslogtreecommitdiffstats
path: root/libkdeedu/extdate/extcalendarsystem.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
commit0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch)
tree2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /libkdeedu/extdate/extcalendarsystem.cpp
parent83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff)
downloadtdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz
tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdeedu/extdate/extcalendarsystem.cpp')
-rw-r--r--libkdeedu/extdate/extcalendarsystem.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/libkdeedu/extdate/extcalendarsystem.cpp b/libkdeedu/extdate/extcalendarsystem.cpp
index f5cd0a36..f453bb6f 100644
--- a/libkdeedu/extdate/extcalendarsystem.cpp
+++ b/libkdeedu/extdate/extcalendarsystem.cpp
@@ -4,7 +4,7 @@
Copyright (c) 2004 Jason Harris <jharris@30doradus.org>
This class has been derived from ExtCalendarSystem;
- the changesd made just replace QDate objects with ExtDate objects.
+ the changesd made just replace TQDate objects with ExtDate objects.
These changes by Jason Harris <jharris@30doradus.org>
This library is free software; you can redistribute it and/or
@@ -57,9 +57,9 @@ const KLocale * ExtCalendarSystem::locale() const
return KGlobal::locale();
}
-QString ExtCalendarSystem::dayString(const ExtDate & pDate, bool bShort) const
+TQString ExtCalendarSystem::dayString(const ExtDate & pDate, bool bShort) const
{
- QString sResult;
+ TQString sResult;
sResult.setNum(day(pDate));
if (!bShort && sResult.length() == 1 )
@@ -68,9 +68,9 @@ QString ExtCalendarSystem::dayString(const ExtDate & pDate, bool bShort) const
return sResult;
}
-QString ExtCalendarSystem::monthString(const ExtDate & pDate, bool bShort) const
+TQString ExtCalendarSystem::monthString(const ExtDate & pDate, bool bShort) const
{
- QString sResult;
+ TQString sResult;
sResult.setNum(month(pDate));
if (!bShort && sResult.length() == 1 )
@@ -79,9 +79,9 @@ QString ExtCalendarSystem::monthString(const ExtDate & pDate, bool bShort) const
return sResult;
}
-QString ExtCalendarSystem::yearString(const ExtDate & pDate, bool bShort) const
+TQString ExtCalendarSystem::yearString(const ExtDate & pDate, bool bShort) const
{
- QString sResult;
+ TQString sResult;
sResult.setNum(year(pDate));
if (bShort && sResult.length() == 4 )
@@ -90,7 +90,7 @@ QString ExtCalendarSystem::yearString(const ExtDate & 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;
@@ -106,22 +106,22 @@ static int stringToInteger(const QString & sNum, int & iLength)
}
-int ExtCalendarSystem::dayStringToInteger(const QString & sNum, int & iLength) const
+int ExtCalendarSystem::dayStringToInteger(const TQString & sNum, int & iLength) const
{
return stringToInteger(sNum, iLength);
}
-int ExtCalendarSystem::monthStringToInteger(const QString & sNum, int & iLength) const
+int ExtCalendarSystem::monthStringToInteger(const TQString & sNum, int & iLength) const
{
return stringToInteger(sNum, iLength);
}
-int ExtCalendarSystem::yearStringToInteger(const QString & sNum, int & iLength) const
+int ExtCalendarSystem::yearStringToInteger(const TQString & sNum, int & iLength) const
{
return stringToInteger(sNum, iLength);
}
-QString ExtCalendarSystem::weekDayName (int weekDay, bool shortName) const
+TQString ExtCalendarSystem::weekDayName (int weekDay, bool shortName) const
{
if ( shortName )
switch ( weekDay )
@@ -146,6 +146,6 @@ QString ExtCalendarSystem::weekDayName (int weekDay, bool shortName) const
case 7: return locale()->translate("Sunday");
}
- return QString::null;
+ return TQString::null;
}