summaryrefslogtreecommitdiffstats
path: root/libkmime/tests/test_dates.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkmime/tests/test_dates.cpp')
-rw-r--r--libkmime/tests/test_dates.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/libkmime/tests/test_dates.cpp b/libkmime/tests/test_dates.cpp
index f70269282..7087a01a6 100644
--- a/libkmime/tests/test_dates.cpp
+++ b/libkmime/tests/test_dates.cpp
@@ -21,9 +21,9 @@ main()
t.setFormat(DateFormatter::Iso);
kdDebug()<<"\tIso : \t"<<t.dateString(ntime)<<endl;
kdDebug()<<"\trfc2822 : \t"<<t.rfc2822(ntime)<<endl;
- QString rfcd = t.rfc2822(ntime);
+ TQString rfcd = t.rfc2822(ntime);
Types::DateTime dt;
- QDateTime qdt;
+ TQDateTime qdt;
const char *str = rfcd.latin1();
if ( HeaderParsing::parseDateTime( str, str + rfcd.length(), dt ) ) {
kdDebug()<<"@@@ ntime = "<<(ntime)<<", dt = "<<(dt.time)<<endl;
@@ -31,7 +31,7 @@ main()
kdDebug()<<"@@@ qq = "<< qdt.toString("ddd, dd MMM yyyy hh:mm:ss") <<endl;
kdDebug()<<"@@@ rfc2822 : "<<t.rfc2822(dt.time)<<endl;
}
- QString ddd = "Mon, 05 Aug 2002 01:57:51 -0700";
+ TQString ddd = "Mon, 05 Aug 2002 01:57:51 -0700";
str = ddd.latin1();
if ( HeaderParsing::parseDateTime( str, str + ddd.length(), dt ) ) {
kdDebug()<<"dt = "<<(dt.time)<<endl;
@@ -79,15 +79,15 @@ main()
kdDebug()<<"\tCustom : \t"<< DateFormatter::formatDate( DateFormatter::Custom, ntime,
"Z MMMM dddd yyyy") <<endl;
t.setFormat(DateFormatter::Fancy);
- kdDebug()<<"QDateTime taking: (dates as in first test)"<<endl;
- kdDebug()<<"\tFancy : \t"<<t.dateString((QDateTime::currentDateTime()))<<endl;
+ kdDebug()<<"TQDateTime taking: (dates as in first test)"<<endl;
+ kdDebug()<<"\tFancy : \t"<<t.dateString((TQDateTime::currentDateTime()))<<endl;
t.setFormat(DateFormatter::Localized);
- kdDebug()<<"\tLocalized : \t"<<t.dateString(QDateTime::currentDateTime())<<endl;
+ kdDebug()<<"\tLocalized : \t"<<t.dateString(TQDateTime::currentDateTime())<<endl;
t.setFormat(DateFormatter::CTime);
- kdDebug()<<"\tCTime : \t"<<t.dateString(QDateTime::currentDateTime())<<endl;
+ kdDebug()<<"\tCTime : \t"<<t.dateString(TQDateTime::currentDateTime())<<endl;
t.setFormat(DateFormatter::Iso);
- kdDebug()<<"\tIso : \t"<<t.dateString(QDateTime::currentDateTime())<<endl;
+ kdDebug()<<"\tIso : \t"<<t.dateString(TQDateTime::currentDateTime())<<endl;
t.setCustomFormat("MMMM d dddd yyyy Z");
- kdDebug()<<"\tCustom : \t"<<t.dateString(QDateTime::currentDateTime())<<endl;
+ kdDebug()<<"\tCustom : \t"<<t.dateString(TQDateTime::currentDateTime())<<endl;
}