summaryrefslogtreecommitdiffstats
path: root/src/kvilib/file/kvi_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvilib/file/kvi_file.h')
-rw-r--r--src/kvilib/file/kvi_file.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/kvilib/file/kvi_file.h b/src/kvilib/file/kvi_file.h
index 7cce041f..11cc85be 100644
--- a/src/kvilib/file/kvi_file.h
+++ b/src/kvilib/file/kvi_file.h
@@ -36,15 +36,7 @@
#include <tqfile.h>
#include <time.h>
-#ifdef COMPILE_USE_QT4
- #define kvi_file_offset_t qlonglong
-#else
-#ifdef USE_QT4
- #define kvi_file_offset_t qint64
-#else // USE_QT4
- #define kvi_file_offset_t TQFile::Offset
-#endif // USE_QT4
-#endif
+#define kvi_file_offset_t TQFile::Offset
class KVILIB_API KviFile : public TQFile, public KviHeapObject
@@ -58,20 +50,12 @@ public:
bool openForReading();
bool openForWriting(bool bAppend = false);
-#ifndef COMPILE_USE_QT4
- // Functions present in TQt 4.x but not TQt 3.x
bool putChar(char c){ return putch(c) != -1; };
bool ungetChar(char c){ return ungetch(c) != -1; };
bool getChar(char * c){ *c = getch(); return *c != -1; };
bool seek(kvi_file_offset_t o){ return at(o); };
kvi_file_offset_t pos(){ return at(); };
-#endif
-#ifdef COMPILE_USE_QT4
- // Missing functions in TQt 4.x
- quint64 writeBlock(const char * data,quint64 uLen){ return write(data,uLen); };
- quint64 readBlock(char * data,quint64 uLen){ return read(data,uLen); };
-#endif
// This stuff loads and saves LITTLE ENDIAN DATA!
bool save(kvi_u64_t t);
@@ -101,11 +85,8 @@ public:
bool save(const KviStr &szData);
bool load(KviStr &szData);
-#ifndef COMPILE_USE_QT4
- // Under TQt 4.x these collide with TQByteArray
bool save(const KviTQCString &szData);
bool load(KviTQCString &szData);
-#endif
bool save(const TQByteArray &bData);
bool load(TQByteArray &bData);