diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kpilot/lib/options.cc | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpilot/lib/options.cc')
-rw-r--r-- | kpilot/lib/options.cc | 20 |
1 files changed, 10 insertions, 10 deletions
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 <iostream> -#include <qsize.h> +#include <tqsize.h> #include <kconfig.h> #include <kdebug.h> @@ -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("<br/>\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); } |