diff options
Diffstat (limited to 'kplato/kptxmlloaderobject.h')
-rw-r--r-- | kplato/kptxmlloaderobject.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kplato/kptxmlloaderobject.h b/kplato/kptxmlloaderobject.h index 814af40b..272c3599 100644 --- a/kplato/kptxmlloaderobject.h +++ b/kplato/kptxmlloaderobject.h @@ -46,18 +46,18 @@ public: void startLoad() { m_timer.start(); - m_starttime = TQDateTime::tqcurrentDateTime(); + m_starttime = TQDateTime::currentDateTime(); m_errors = m_warnings = 0; m_log.clear(); - addMsg(TQString("Loading started at %1").tqarg(m_starttime.toString())); + addMsg(TQString("Loading started at %1").arg(m_starttime.toString())); } void stopLoad() { m_elapsed = m_timer.elapsed(); - addMsg(TQString("Loading finished at %1, took %2").tqarg(TQDateTime::tqcurrentDateTime().toString()).tqarg(formatElapsed())); + addMsg(TQString("Loading finished at %1, took %2").arg(TQDateTime::currentDateTime().toString()).arg(formatElapsed())); } TQDateTime lastLoaded() const { return m_starttime; } int elapsed() const { return m_elapsed; } - TQString formatElapsed() { return TQString("%1 seconds").tqarg((double)m_elapsed/1000); } + TQString formatElapsed() { return TQString("%1 seconds").arg((double)m_elapsed/1000); } void setLogLevel(Severity sev) { m_logLevel = sev; } const TQStringList &log() const { return m_log; } @@ -70,7 +70,7 @@ public: else if (sev == Diagnostics) s = "Diagnostic"; else if (sev == Debug) s = "Debug"; else s = "Message"; - m_log<<TQString("%1: %2").tqarg(s, 13).tqarg(msg); + m_log<<TQString("%1: %2").arg(s, 13).arg(msg); } void addMsg(TQString msg) { m_log<<msg; } void increment(int sev) { |