From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpilot/lib/options.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kpilot/lib/options.cc') diff --git a/kpilot/lib/options.cc b/kpilot/lib/options.cc index 0eb1babf7..be2b5e6e2 100644 --- a/kpilot/lib/options.cc +++ b/kpilot/lib/options.cc @@ -33,7 +33,7 @@ #include -#include +#include #include #include @@ -55,11 +55,11 @@ static const char debug_spaces[61] = " "; -QString rtExpand(const QString &s, Qt::TextFormat richText) +TQString rtExpand(const TQString &s, Qt::TextFormat richText) { if (richText == Qt::RichText) { - QString t(s); + TQString t(s); return t.replace(CSL1("\n"), CSL1("
\n")); } else @@ -69,17 +69,17 @@ QString rtExpand(const QString &s, Qt::TextFormat richText) } -QDateTime readTm(const struct tm &t) +TQDateTime readTm(const struct tm &t) { - QDateTime dt; - dt.setDate(QDate(1900 + t.tm_year, t.tm_mon + 1, t.tm_mday)); - dt.setTime(QTime(t.tm_hour, t.tm_min, t.tm_sec)); + TQDateTime dt; + dt.setDate(TQDate(1900 + t.tm_year, t.tm_mon + 1, t.tm_mday)); + dt.setTime(TQTime(t.tm_hour, t.tm_min, t.tm_sec)); return dt; } -struct tm writeTm(const QDateTime &dt) +struct tm writeTm(const TQDateTime &dt) { struct tm t; @@ -102,9 +102,9 @@ struct tm writeTm(const QDateTime &dt) -struct tm writeTm(const QDate &d) +struct tm writeTm(const TQDate &d) { - QDateTime dt(d); + TQDateTime dt(d); return writeTm(dt); } -- cgit v1.2.1