summaryrefslogtreecommitdiffstats
path: root/src/functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/functions.cpp')
-rw-r--r--src/functions.cpp12
1 files changed, 6 insertions, 6 deletions
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 <ntqdatetime.h>
-#include <klocale.h>
-#include <kglobal.h>
+#include <tdelocale.h>
+#include <tdeglobal.h>
#include <kdebug.h>
#include <sys/time.h>
#include <ntqdir.h>
@@ -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);