diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kplato/kptxmlloaderobject.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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; }; |