diff options
Diffstat (limited to 'kplato/kptxmlloaderobject.h')
-rw-r--r-- | kplato/kptxmlloaderobject.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kplato/kptxmlloaderobject.h b/kplato/kptxmlloaderobject.h index d049d6b0..814af40b 100644 --- a/kplato/kptxmlloaderobject.h +++ b/kplato/kptxmlloaderobject.h @@ -22,9 +22,9 @@ #include "kptproject.h" -#include <qdatetime.h> -#include <qstring.h> -#include <qstringlist.h> +#include <tqdatetime.h> +#include <tqstring.h> +#include <tqstringlist.h> namespace KPlato { @@ -46,33 +46,33 @@ public: void startLoad() { m_timer.start(); - m_starttime = QDateTime::currentDateTime(); + m_starttime = TQDateTime::tqcurrentDateTime(); m_errors = m_warnings = 0; m_log.clear(); - addMsg(QString("Loading started at %1").arg(m_starttime.toString())); + addMsg(TQString("Loading started at %1").tqarg(m_starttime.toString())); } void stopLoad() { m_elapsed = m_timer.elapsed(); - addMsg(QString("Loading finished at %1, took %2").arg(QDateTime::currentDateTime().toString()).arg(formatElapsed())); + addMsg(TQString("Loading finished at %1, took %2").tqarg(TQDateTime::tqcurrentDateTime().toString()).tqarg(formatElapsed())); } - QDateTime lastLoaded() const { return m_starttime; } + TQDateTime lastLoaded() const { return m_starttime; } int elapsed() const { return m_elapsed; } - QString formatElapsed() { return QString("%1 seconds").arg((double)m_elapsed/1000); } + TQString formatElapsed() { return TQString("%1 seconds").tqarg((double)m_elapsed/1000); } void setLogLevel(Severity sev) { m_logLevel = sev; } - const QStringList &log() const { return m_log; } - void addMsg(int sev, QString msg) { + const TQStringList &log() const { return m_log; } + void addMsg(int sev, TQString msg) { increment(sev); if (m_logLevel < sev) return; - QString s; + TQString s; if (sev == Errors) s = "ERROR"; else if (sev == Warnings) s = "WARNING"; else if (sev == Diagnostics) s = "Diagnostic"; else if (sev == Debug) s = "Debug"; else s = "Message"; - m_log<<QString("%1: %2").arg(s, 13).arg(msg); + m_log<<TQString("%1: %2").tqarg(s, 13).tqarg(msg); } - void addMsg(QString msg) { m_log<<msg; } + void addMsg(TQString msg) { m_log<<msg; } void increment(int sev) { if (sev == Errors) { incErrors(); return; } if (sev == Warnings) { incWarnings(); return; } @@ -89,9 +89,9 @@ protected: int m_errors; int m_warnings; int m_logLevel; - QStringList m_log; - QDateTime m_starttime; - QTime m_timer; + TQStringList m_log; + TQDateTime m_starttime; + TQTime m_timer; int m_elapsed; }; |