diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-07-27 17:13:06 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-07-27 18:48:47 +0200 |
commit | a915aa74dc1acdd12de97f9d95a848b3b2a17abb (patch) | |
tree | f65d926875557195c5f6dd840a517e195eeda20e /src/functions.cpp | |
parent | 7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931 (diff) | |
download | tork-a915aa74dc1acdd12de97f9d95a848b3b2a17abb.tar.gz tork-a915aa74dc1acdd12de97f9d95a848b3b2a17abb.zip |
Initial TDE conversion
Diffstat (limited to 'src/functions.cpp')
-rw-r--r-- | src/functions.cpp | 12 |
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); |