diff options
author | Timothy Pearson <[email protected]> | 2013-01-24 13:23:24 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-24 13:23:24 -0600 |
commit | 5b8ab149469c8e186ee8b05d90c0103ae722dd85 (patch) | |
tree | fb31321c80b12ee8e2237bdcf8c228fe44e67772 /kplato/kptduration.cc | |
parent | fe33d391dd7c9da0f83e779344a17e2e445b70a8 (diff) | |
download | koffice-5b8ab149469c8e186ee8b05d90c0103ae722dd85.tar.gz koffice-5b8ab149469c8e186ee8b05d90c0103ae722dd85.zip |
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
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 0a2296b0..ec817195 100644 --- a/kplato/kptduration.cc +++ b/kplato/kptduration.cc @@ -148,7 +148,7 @@ TQString Duration::toString(Format format) const { result.sprintf("%u %02u:%02u:%02u.%u", (unsigned)days, hours, minutes, seconds, (unsigned)ms); break; case Format_HourFraction: - result = KGlobal::locale()->formatNumber(toDouble(Unit_h), 2); + result = TDEGlobal::locale()->formatNumber(toDouble(Unit_h), 2); break; // i18n case Format_i18nHour: @@ -159,7 +159,7 @@ TQString Duration::toString(Format format) const { result = i18n("<hours>h:<minutes>m", "%1h:%2m").arg(hours).arg(minutes); break; case Format_i18nDay: - result = KGlobal::locale()->formatNumber(toDouble(Unit_d), 2); + result = TDEGlobal::locale()->formatNumber(toDouble(Unit_d), 2); break; case Format_i18nDayTime: ms = m_ms; @@ -178,7 +178,7 @@ TQString Duration::toString(Format format) const { } break; case Format_i18nHourFraction: - result = KGlobal::locale()->formatNumber(toDouble(Unit_h), 2); + result = TDEGlobal::locale()->formatNumber(toDouble(Unit_h), 2); break; default: kdFatal()<<k_funcinfo<<"Unknown format"<<endl; @@ -218,7 +218,7 @@ Duration Duration::fromString(const TQString &s, Format format, bool *ok) { case Format_HourFraction: { // should be in double format bool res; - double f = KGlobal::locale()->readNumber(s, &res); + double f = TDEGlobal::locale()->readNumber(s, &res); if (ok) *ok = res; if (res) { return Duration((TQ_INT64)(f*3600.0)); |