diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdecore/kqiodevicegzip_p.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/kqiodevicegzip_p.cpp')
-rw-r--r-- | kdecore/kqiodevicegzip_p.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kdecore/kqiodevicegzip_p.cpp b/kdecore/kqiodevicegzip_p.cpp index cb0cd2fe6..2f949b9ee 100644 --- a/kdecore/kqiodevicegzip_p.cpp +++ b/kdecore/kqiodevicegzip_p.cpp @@ -19,10 +19,10 @@ // TODO: more error report and control -#include <qstring.h> +#include <tqstring.h> #include "kqiodevicegzip_p.h" -KQIODeviceGZip::KQIODeviceGZip(const QString& filename) +KQIODeviceGZip::KQIODeviceGZip(const TQString& filename) { m_gzfile=0; m_ungetchar=-1; @@ -46,11 +46,11 @@ bool KQIODeviceGZip::open(int mode) if (IO_ReadOnly==mode) { - m_gzfile=gzopen(QFile::encodeName(m_filename),"rb"); + m_gzfile=gzopen(TQFile::encodeName(m_filename),"rb"); } else if (IO_WriteOnly==mode) { - m_gzfile=gzopen(QFile::encodeName(m_filename),"wb9"); // Always set best compression + m_gzfile=gzopen(TQFile::encodeName(m_filename),"wb9"); // Always set best compression } else { @@ -78,19 +78,19 @@ void KQIODeviceGZip::flush(void) } } -QIODevice::Offset KQIODeviceGZip::size(void) const +TQIODevice::Offset KQIODeviceGZip::size(void) const { return 0; // You cannot determine size! } -QIODevice::Offset KQIODeviceGZip::at() const +TQIODevice::Offset KQIODeviceGZip::at() const { if (!m_gzfile) return 0; return gztell(m_gzfile); } -bool KQIODeviceGZip::at(QIODevice::Offset pos) +bool KQIODeviceGZip::at(TQIODevice::Offset pos) { if (!m_gzfile) return false; |