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.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kpilot/lib/options.h') diff --git a/kpilot/lib/options.h b/kpilot/lib/options.h index 6e036e82..9fe0f8be 100644 --- a/kpilot/lib/options.h +++ b/kpilot/lib/options.h @@ -36,9 +36,9 @@ #include "config.h" -#include -#include -#include +#include +#include +#include #if (QT_VERSION < 0x030300) #error "This is KPilot for KDE3.5 and won't compile with Qt < 3.3.0" @@ -61,9 +61,9 @@ #include using namespace std; -inline std::ostream& operator <<(std::ostream &o, const QString &s) +inline std::ostream& operator <<(std::ostream &o, const TQString &s) { if (s.isEmpty()) return o<<""; else return o<"; else return o << *s; } @@ -144,19 +144,19 @@ inline std::ostream& operator <<(std::ostream &o, const KPilotDepthCount &d) // Function to expand newlines in rich text to
\n -QString rtExpand(const QString &s, Qt::TextFormat richText); +TQString rtExpand(const TQString &s, Qt::TextFormat richText); /** * Convert a struct tm from the pilot-link package to a QDateTime */ -KDE_EXPORT QDateTime readTm(const struct tm &t); +KDE_EXPORT TQDateTime readTm(const struct tm &t); /** - * Convert a QDateTime to a struct tm for use with the pilot-link package + * Convert a TQDateTime to a struct tm for use with the pilot-link package */ -KDE_EXPORT struct tm writeTm(const QDateTime &dt); -KDE_EXPORT struct tm writeTm(const QDate &dt); +KDE_EXPORT struct tm writeTm(const TQDateTime &dt); +KDE_EXPORT struct tm writeTm(const TQDate &dt); // Some layout macros @@ -180,7 +180,7 @@ KDE_EXPORT struct tm writeTm(const QDate &dt); // variant is to handle plurals and is wrong, but unavoidable. // // -#define TODO_I18N(a) QString::fromLatin1(a) +#define TODO_I18N(a) TQString::fromLatin1(a) #define TODO_I18N_P(a,b,c) ((c>1) ? a : b) // Handle some cases for QT_NO_CAST_ASCII and NO_ASCII_CAST. @@ -194,6 +194,6 @@ KDE_EXPORT struct tm writeTm(const QDate &dt); // with constant strings. // // -#define CSL1(a) QString::fromLatin1(a "") +#define CSL1(a) TQString::fromLatin1(a "") #endif -- cgit v1.2.3