summaryrefslogtreecommitdiffstats
path: root/libk3b/tools/k3bfilesysteminfo.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 19:21:21 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 19:21:21 +0000
commitd8cc8bdfa7fa624a526d5aa1626974e1444cb799 (patch)
treef295f1c545b319963d5357af79fe08991d8141d9 /libk3b/tools/k3bfilesysteminfo.cpp
parent2a39a080579fb52a2599c02b2939795385b89093 (diff)
downloadk3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.tar.gz
k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.zip
TQt4 port k3b
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libk3b/tools/k3bfilesysteminfo.cpp')
-rw-r--r--libk3b/tools/k3bfilesysteminfo.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/libk3b/tools/k3bfilesysteminfo.cpp b/libk3b/tools/k3bfilesysteminfo.cpp
index fe1eaf8..026643f 100644
--- a/libk3b/tools/k3bfilesysteminfo.cpp
+++ b/libk3b/tools/k3bfilesysteminfo.cpp
@@ -19,9 +19,9 @@
#include <k3bglobals.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qregexp.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqregexp.h>
#include <kdebug.h>
@@ -57,13 +57,13 @@ public:
}
FileSystemType type;
- QString path;
+ TQString path;
bool statDone;
void stat() {
struct statfs fs;
- if( !::statfs( QFile::encodeName( QFileInfo(path).dirPath( true ) ), &fs ) ) {
+ if( !::statfs( TQFile::encodeName( TQFileInfo(path).dirPath( true ) ), &fs ) ) {
switch( fs.f_type ) {
case 0x4d44: // MS-DOS
type = FS_FAT;
@@ -86,7 +86,7 @@ K3bFileSystemInfo::K3bFileSystemInfo()
}
-K3bFileSystemInfo::K3bFileSystemInfo( const QString& path )
+K3bFileSystemInfo::K3bFileSystemInfo( const TQString& path )
{
d = new Private;
d->path = path;
@@ -108,13 +108,13 @@ K3bFileSystemInfo::~K3bFileSystemInfo()
}
-QString K3bFileSystemInfo::path() const
+TQString K3bFileSystemInfo::path() const
{
return d->path;
}
-void K3bFileSystemInfo::setPath( const QString& path )
+void K3bFileSystemInfo::setPath( const TQString& path )
{
if( d->path != path ) {
d->path = path;
@@ -131,11 +131,11 @@ K3bFileSystemInfo::FileSystemType K3bFileSystemInfo::type() const
}
-QString K3bFileSystemInfo::fixupPath( const QString& path )
+TQString K3bFileSystemInfo::fixupPath( const TQString& path )
{
- QString s = K3b::fixupPath( path );
+ TQString s = K3b::fixupPath( path );
if( type() == K3bFileSystemInfo::FS_FAT )
- return s.replace( QRegExp("[\"\\?\\*/\\\\[\\]\\|\\=\\:;]"), "_" );
+ return s.tqreplace( TQRegExp("[\"\\?\\*/\\\\[\\]\\|\\=\\:;]"), "_" );
else
return s;
}