From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdecore/kqiodevicegzip_p.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'kdecore/kqiodevicegzip_p.cpp') 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 +#include #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; -- cgit v1.2.1