summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/oblique/kbuffer.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 17:00:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 17:00:31 +0000
commit395a904bff7b4d6ead445c342f7ac0c5fbf29121 (patch)
tree9829cadb79d2cc7c29a940627fadb28b11e54150 /noatun-plugins/oblique/kbuffer.cpp
parent399f47c376fdf4d19192732a701ea9578d11619d (diff)
downloadtdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.tar.gz
tdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.zip
TQt4 port kdeaddons
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1237404 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun-plugins/oblique/kbuffer.cpp')
-rw-r--r--noatun-plugins/oblique/kbuffer.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/noatun-plugins/oblique/kbuffer.cpp b/noatun-plugins/oblique/kbuffer.cpp
index f54110e..04a28fb 100644
--- a/noatun-plugins/oblique/kbuffer.cpp
+++ b/noatun-plugins/oblique/kbuffer.cpp
@@ -33,12 +33,16 @@ void KBuffer::flush(){
}
/** query buffer size */
-Q_ULONG KBuffer::size() const {
+#ifdef USE_QT4
+qint64 KBuffer::size() const {
+#else // USE_QT4
+TQ_ULONG KBuffer::size() const {
+#endif // USE_QT4
return buf.size();
}
/** read a block of memory from buffer, advances read/write position */
-Q_LONG KBuffer::readBlock(char* data, long unsigned int maxLen) {
+TQ_LONG KBuffer::readBlock(char* data, long unsigned int maxLen) {
int len;
if ((long unsigned)(buf.end()-bufPos) > maxLen)
len = maxLen;
@@ -52,7 +56,7 @@ Q_LONG KBuffer::readBlock(char* data, long unsigned int maxLen) {
}
/** write a block of memory into buffer */
-Q_LONG KBuffer::writeBlock(const char *data, long unsigned int len){
+TQ_LONG KBuffer::writeBlock(const char *data, long unsigned int len){
int pos = bufPos-buf.begin();
copy(data, data+len, inserter(buf,bufPos));
bufPos = buf.begin() + pos + len;