diff options
Diffstat (limited to 'kplato/kptduration.cc')
-rw-r--r-- | kplato/kptduration.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kplato/kptduration.cc b/kplato/kptduration.cc index 5e9d6b44..0a2296b0 100644 --- a/kplato/kptduration.cc +++ b/kplato/kptduration.cc @@ -129,11 +129,11 @@ TQString Duration::toString(Format format) const { hours = ms / (1000 * 60 * 60); ms -= (TQ_INT64)hours * (1000 * 60 * 60); minutes = ms / (1000 * 60); - result = TQString("%1h%2m").tqarg(hours).tqarg(minutes); + result = TQString("%1h%2m").arg(hours).arg(minutes); break; case Format_Day: days = m_ms / (1000 * 60 * 60 * 24.0); - result = TQString("%1d").tqarg(TQString::number(days, 'f', 4)); + result = TQString("%1d").arg(TQString::number(days, 'f', 4)); break; case Format_DayTime: ms = m_ms; @@ -156,7 +156,7 @@ TQString Duration::toString(Format format) const { hours = ms / (1000 * 60 * 60); ms -= (TQ_INT64)hours * (1000 * 60 * 60); minutes = ms / (1000 * 60); - result = i18n("<hours>h:<minutes>m", "%1h:%2m").tqarg(hours).tqarg(minutes); + result = i18n("<hours>h:<minutes>m", "%1h:%2m").arg(hours).arg(minutes); break; case Format_i18nDay: result = KGlobal::locale()->formatNumber(toDouble(Unit_d), 2); @@ -174,7 +174,7 @@ TQString Duration::toString(Format format) const { if (days == 0) { result = toString(Format_i18nHour); } else { - result = i18n("<days>d <hours>h:<minutes>m", "%1d %2h:%3m").tqarg(days).tqarg(hours).tqarg(minutes); + result = i18n("<days>d <hours>h:<minutes>m", "%1d %2h:%3m").arg(days).arg(hours).arg(minutes); } break; case Format_i18nHourFraction: |