summaryrefslogtreecommitdiffstats
path: root/src/network/access/qnetworkreplyimpl.cpp
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2010-03-15 14:26:41 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2010-03-16 08:31:04 (GMT)
commitdd6c5cad88a56fb3a342fe9d4fc3b113ffe3fd53 (patch)
treed2a9d7c6762b883c16b8fb42389a4620cbd8d817 /src/network/access/qnetworkreplyimpl.cpp
parent6f814d58036867a28333770bd55f5fe49bb9ac82 (diff)
downloadQt-dd6c5cad88a56fb3a342fe9d4fc3b113ffe3fd53.zip
Qt-dd6c5cad88a56fb3a342fe9d4fc3b113ffe3fd53.tar.gz
Qt-dd6c5cad88a56fb3a342fe9d4fc3b113ffe3fd53.tar.bz2
QNetworkReply: Fix canReadLine()
Reviewed-by: Peter Hartmann
Diffstat (limited to 'src/network/access/qnetworkreplyimpl.cpp')
-rw-r--r--src/network/access/qnetworkreplyimpl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/network/access/qnetworkreplyimpl.cpp b/src/network/access/qnetworkreplyimpl.cpp
index 162cff1..8505a41 100644
--- a/src/network/access/qnetworkreplyimpl.cpp
+++ b/src/network/access/qnetworkreplyimpl.cpp
@@ -723,6 +723,13 @@ void QNetworkReplyImpl::close()
d->finished();
}
+bool QNetworkReplyImpl::canReadLine () const
+{
+ Q_D(const QNetworkReplyImpl);
+ return QNetworkReply::canReadLine() || d->readBuffer.canReadLine();
+}
+
+
/*!
Returns the number of bytes available for reading with
QIODevice::read(). The number of bytes available may grow until