diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 19:21:21 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 19:21:21 +0000 |
commit | d8cc8bdfa7fa624a526d5aa1626974e1444cb799 (patch) | |
tree | f295f1c545b319963d5357af79fe08991d8141d9 /libk3b/tools/k3biso9660backend.cpp | |
parent | 2a39a080579fb52a2599c02b2939795385b89093 (diff) | |
download | k3b-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/k3biso9660backend.cpp')
-rw-r--r-- | libk3b/tools/k3biso9660backend.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libk3b/tools/k3biso9660backend.cpp b/libk3b/tools/k3biso9660backend.cpp index aacc079..e03d66d 100644 --- a/libk3b/tools/k3biso9660backend.cpp +++ b/libk3b/tools/k3biso9660backend.cpp @@ -21,7 +21,7 @@ #include <sys/stat.h> #include <fcntl.h> -#include <qfile.h> +#include <tqfile.h> #include <k3bdevice.h> @@ -78,7 +78,7 @@ int K3bIso9660DeviceBackend::read( unsigned int sector, char* data, int len ) int sectorsRead = 0; int retries = 10; // TODO: no fixed value while( retries ) { - int read = QMIN(len-sectorsRead, maxReadSectors); + int read = TQMIN(len-sectorsRead, maxReadSectors); if( !m_device->read10( (unsigned char*)(data+sectorsRead*2048), read*2048, sector+sectorsRead, @@ -102,7 +102,7 @@ int K3bIso9660DeviceBackend::read( unsigned int sector, char* data, int len ) // K3bIso9660FileBackend ----------------------------------- // -K3bIso9660FileBackend::K3bIso9660FileBackend( const QString& filename ) +K3bIso9660FileBackend::K3bIso9660FileBackend( const TQString& filename ) : m_filename( filename ), m_fd( -1 ), m_closeFd( true ) @@ -132,7 +132,7 @@ bool K3bIso9660FileBackend::open() if( m_fd > 0 ) return true; else { - m_fd = ::open( QFile::encodeName( m_filename ), O_RDONLY|O_LARGEFILE ); + m_fd = ::open( TQFile::encodeName( m_filename ), O_RDONLY|O_LARGEFILE ); return ( m_fd > 0 ); } } |