From a915aa74dc1acdd12de97f9d95a848b3b2a17abb Mon Sep 17 00:00:00 2001 From: Slávek Banko Date: Sat, 27 Jul 2013 17:13:06 +0200 Subject: Initial TDE conversion --- src/functions.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/functions.cpp') diff --git a/src/functions.cpp b/src/functions.cpp index 694f905..cf0ec8d 100644 --- a/src/functions.cpp +++ b/src/functions.cpp @@ -21,8 +21,8 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #include -#include -#include +#include +#include #include #include #include @@ -39,7 +39,7 @@ namespace tk TQString BytesToString(Uint64 bytes,int precision) { - KLocale* loc = KGlobal::locale(); + TDELocale* loc = TDEGlobal::locale(); if (bytes >= 1024 * 1024 * 1024) return i18n("%1 GB").arg(loc->formatNumber(bytes / TO_GIG,precision < 0 ? 2 : precision)); else if (bytes >= 1024*1024) @@ -52,7 +52,7 @@ namespace tk TQString BytesPerSecToString(double bytes,int precision) { - KLocale* loc = KGlobal::locale(); + TDELocale* loc = TDEGlobal::locale(); if (bytes >= 1024 * 1024 * 1024) return i18n("%1 GB/s").arg(loc->formatNumber(bytes / TO_GIG,precision < 0 ? 2 : precision)); else if (bytes >= 1024*1024) @@ -65,14 +65,14 @@ namespace tk TQString KBytesPerSecToString(double speed,int precision) { - KLocale* loc = KGlobal::locale(); + TDELocale* loc = TDEGlobal::locale(); return i18n("%1 KB/s").arg(loc->formatNumber(speed,precision)); } TQString DurationToString(Uint32 nsecs) { - KLocale* loc = KGlobal::locale(); + TDELocale* loc = TDEGlobal::locale(); TQTime t; int ndays = nsecs / 86400; t = t.addSecs(nsecs % 86400); -- cgit v1.2.3