summaryrefslogtreecommitdiffstats
path: root/kpilot/lib/options.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kpilot/lib/options.cc')
-rw-r--r--kpilot/lib/options.cc20
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);
}