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 /plugins/decoder/mp3/k3bmad.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 'plugins/decoder/mp3/k3bmad.cpp')
-rw-r--r-- | plugins/decoder/mp3/k3bmad.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/decoder/mp3/k3bmad.cpp b/plugins/decoder/mp3/k3bmad.cpp index cb4cf6c..74aeee3 100644 --- a/plugins/decoder/mp3/k3bmad.cpp +++ b/plugins/decoder/mp3/k3bmad.cpp @@ -15,7 +15,7 @@ #include "k3bmad.h" -#include <qfile.h> +#include <tqfile.h> #include <kdebug.h> @@ -52,7 +52,7 @@ K3bMad::~K3bMad() } -bool K3bMad::open( const QString& filename ) +bool K3bMad::open( const TQString& filename ) { cleanup(); @@ -105,7 +105,7 @@ bool K3bMad::fillStreamBuffer() } // Fill-in the buffer. - Q_LONG result = m_inputFile.readBlock( (char*)readStart, readSize ); + TQ_LONG result = m_inputFile.readBlock( (char*)readStart, readSize ); if( result < 0 ) { kdDebug() << "(K3bMad) read error on bitstream)" << endl; m_bInputError = true; @@ -192,7 +192,7 @@ bool K3bMad::seekFirstHeader() // take way to long for non-mp3 files. // bool headerFound = findNextHeader(); - QIODevice::Offset inputPos = streamPos(); + TQIODevice::Offset inputPos = streamPos(); while( !headerFound && !m_inputFile.atEnd() && streamPos() <= inputPos+1024 ) { @@ -222,19 +222,19 @@ bool K3bMad::eof() const } -QIODevice::Offset K3bMad::inputPos() const +TQIODevice::Offset K3bMad::inputPos() const { return m_inputFile.at(); } -QIODevice::Offset K3bMad::streamPos() const +TQIODevice::Offset K3bMad::streamPos() const { return inputPos() - (madStream->bufend - madStream->this_frame + 1); } -bool K3bMad::inputSeek( QIODevice::Offset pos ) +bool K3bMad::inputSeek( TQIODevice::Offset pos ) { return m_inputFile.at( pos ); } |