summaryrefslogtreecommitdiffstats
path: root/kdecore/kqiodevicegzip_p.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-13 08:32:36 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-13 08:32:36 +0000
commitf7e71d47719ab6094cf4a9fafffa5ea351973522 (patch)
tree30834aa632d442019e14f88685001d94657d060b /kdecore/kqiodevicegzip_p.cpp
parentb31cfd9a1ee986fe2ae9a693f3afd7f171dd897c (diff)
downloadtdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.tar.gz
tdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.zip
Initial conversion for TQt for Qt4 3.4.0 TP2
This will also compile with TQt for Qt3, and should not cause any problems with dependent modules such as kdebase. If it does then it needs to be fixed! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214149 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/kqiodevicegzip_p.cpp')
-rw-r--r--kdecore/kqiodevicegzip_p.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/kdecore/kqiodevicegzip_p.cpp b/kdecore/kqiodevicegzip_p.cpp
index 2f949b9ee..8439eb26e 100644
--- a/kdecore/kqiodevicegzip_p.cpp
+++ b/kdecore/kqiodevicegzip_p.cpp
@@ -78,7 +78,11 @@ void KQIODeviceGZip::flush(void)
}
}
+#ifdef USE_QT4
+qint64 KQIODeviceGZip::size(void) const
+#else // USE_QT4
TQIODevice::Offset KQIODeviceGZip::size(void) const
+#endif // USE_QT4
{
return 0; // You cannot determine size!
}
@@ -111,9 +115,9 @@ bool KQIODeviceGZip::reset(void)
return (gzrewind(m_gzfile)>=0);
}
-Q_LONG KQIODeviceGZip::readBlock( char *data, Q_ULONG maxlen )
+TQ_LONG KQIODeviceGZip::readBlock( char *data, TQ_ULONG maxlen )
{
- Q_LONG result=0;
+ TQ_LONG result=0;
if (m_gzfile)
{
result=gzread(m_gzfile,data,maxlen);
@@ -122,9 +126,9 @@ Q_LONG KQIODeviceGZip::readBlock( char *data, Q_ULONG maxlen )
return result;
}
-Q_LONG KQIODeviceGZip::writeBlock( const char *data, Q_ULONG len )
+TQ_LONG KQIODeviceGZip::writeBlock( const char *data, TQ_ULONG len )
{
- Q_ULONG result=0;
+ TQ_ULONG result=0;
if (m_gzfile)
{
result=gzwrite(m_gzfile,(char*)data,len);