summaryrefslogtreecommitdiffstats
path: root/kdat/Util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdat/Util.cpp')
-rw-r--r--kdat/Util.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kdat/Util.cpp b/kdat/Util.cpp
index 7fb06a3..11e7219 100644
--- a/kdat/Util.cpp
+++ b/kdat/Util.cpp
@@ -16,26 +16,26 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include <kglobal.h>
#include <klocale.h>
#include "Util.h"
-QString Util::bytesToString( uint bytes )
+TQString Util::bytesToString( uint bytes )
{
return KGlobal::locale()->formatNumber(bytes, 0);
}
-QString Util::kbytesToString( uint kbytes )
+TQString Util::kbytesToString( uint kbytes )
{
return KGlobal::locale()->formatNumber(kbytes, 0) + 'k';
}
-QString Util::longestCommonPath( const QStringList& files )
+TQString Util::longestCommonPath( const TQStringList& files )
{
- QStringList filesTmp = files;
- QStringList::Iterator i = filesTmp.begin();
+ TQStringList filesTmp = files;
+ TQStringList::Iterator i = filesTmp.begin();
uint minLen = (*i).length();
for ( ; i != filesTmp.end(); ++i ) {
@@ -46,7 +46,7 @@ QString Util::longestCommonPath( const QStringList& files )
uint j;
for ( j = 0; j < minLen; j++ ) {
i = filesTmp.begin();
- QString first = *i;
+ TQString first = *i;
for ( ; i != filesTmp.end(); ++i ) {
if ( first.left(j) != (*i).left(j) ) {
// Prefixes are NOT the same.
@@ -59,7 +59,7 @@ QString Util::longestCommonPath( const QStringList& files )
}
}
i = filesTmp.begin();
- QString prefix = *i;
+ TQString prefix = *i;
int idx = prefix.findRev( '/', j );
if ( idx > -1 ) {
prefix = prefix.left( prefix.findRev( '/', j ) );