summaryrefslogtreecommitdiffstats
path: root/kdat/Util.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
commitaa3a1ca934bc541bddd3fa136a85f106f7da266e (patch)
tree9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kdat/Util.cpp
parentb10cf7066791a2f362495890cd50c984e8025412 (diff)
downloadtdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz
tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 ) );