Drop USE_TQT4 code

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/27/head
Michele Calgaro 1 year ago
parent eac5a923bf
commit c19b14663d
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -155,11 +155,7 @@ void K3bFileSplitter::flush()
d->file.flush(); d->file.flush();
} }
#ifdef USE_QT4
qint64 K3bFileSplitter::size() const
#else // USE_QT4
TQIODevice::Offset K3bFileSplitter::size() const TQIODevice::Offset K3bFileSplitter::size() const
#endif // USE_QT4
{ {
// not implemented due to Offset size limitations // not implemented due to Offset size limitations
return 0; return 0;

@ -63,11 +63,6 @@ class LIBK3B_EXPORT K3bFileSplitter : public TQIODevice
virtual void close(); virtual void close();
#ifdef USE_QT4
inline qint64 readData ( char * data, qint64 maxSize ) { return readBlock(data, maxSize); }
inline qint64 writeData ( const char * data, qint64 maxSize ) { return writeBlock(data, maxSize); }
#endif // USE_QT4
/** /**
* File descriptor to read from and write to. * File descriptor to read from and write to.
* Not implemented yet! * Not implemented yet!
@ -79,11 +74,7 @@ class LIBK3B_EXPORT K3bFileSplitter : public TQIODevice
/** /**
* Not implemented * Not implemented
*/ */
#ifdef USE_QT4
virtual qint64 size() const;
#else // USE_QT4
virtual Offset size() const; virtual Offset size() const;
#endif // USE_QT4
/** /**
* Not implemented * Not implemented

@ -19,19 +19,7 @@
#include <tqfile.h> #include <tqfile.h>
#include <tqobject.h> #include <tqobject.h>
#ifdef Q_MOC_RUN
#define USE_QT4
#endif // Q_MOC_RUN
// MOC_SKIP_BEGIN
#ifdef USE_QT4
class K3bDebuggingOutputFile : public TQFile
#else // USE_QT4
// MOC_SKIP_END
class K3bDebuggingOutputFile : public TQObject, public TQFile class K3bDebuggingOutputFile : public TQObject, public TQFile
// MOC_SKIP_BEGIN
#endif // USE_QT4
// MOC_SKIP_END
{ {
TQ_OBJECT TQ_OBJECT

@ -20,10 +20,6 @@
#include <config.h> #include <config.h>
#endif #endif
#ifdef Q_MOC_RUN
#define HAVE_MUSICBRAINZ
#endif // Q_MOC_RUN
#ifdef HAVE_MUSICBRAINZ #ifdef HAVE_MUSICBRAINZ
#include <k3bjob.h> #include <k3bjob.h>

@ -46,16 +46,7 @@ public:
void close() { } void close() { }
void flush() { } void flush() { }
#ifdef USE_QT4
inline qint64 readData ( char * data, qint64 maxSize ) { return readBlock(data, maxSize); }
inline qint64 writeData ( const char * data, qint64 maxSize ) { return writeBlock(data, maxSize); }
#endif // USE_QT4
#ifdef USE_QT4
qint64 size() const {
#else // USE_QT4
Offset size() const { Offset size() const {
#endif // USE_QT4
if ( m_store->mode() == KoStore::Read ) if ( m_store->mode() == KoStore::Read )
return m_store->size(); return m_store->size();
else else

Loading…
Cancel
Save