summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMorten Engvoldsen <morten.engvoldsen@nokia.com>2009-05-06 12:51:13 (GMT)
committerMorten Engvoldsen <morten.engvoldsen@nokia.com>2009-05-06 12:51:53 (GMT)
commitda1416cef6b1d24156739ded101df895ee4e80d9 (patch)
tree054deeb2393659f20f2d105663c60b2e7d682d36 /src
parent30559395ca73361ec4347fe04fb0eb34a373859a (diff)
downloadQt-da1416cef6b1d24156739ded101df895ee4e80d9.zip
Qt-da1416cef6b1d24156739ded101df895ee4e80d9.tar.gz
Qt-da1416cef6b1d24156739ded101df895ee4e80d9.tar.bz2
Added comment to QTextStream - clarification of the documentation
Explained why you cannot use QTextStream::atEnd with stdin. Task-number:251171
Diffstat (limited to 'src')
-rw-r--r--src/corelib/io/qtextstream.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/io/qtextstream.cpp b/src/corelib/io/qtextstream.cpp
index ed9d0aa..2010008 100644
--- a/src/corelib/io/qtextstream.cpp
+++ b/src/corelib/io/qtextstream.cpp
@@ -67,7 +67,8 @@ static const int QTEXTSTREAM_BUFFERSIZE = 16384;
\snippet doc/src/snippets/code/src_corelib_io_qtextstream.cpp 1
Note that you cannot use QTextStream::atEnd(), which returns true when you
- have reached the end of the data stream, with stdin.
+ have reached the end of the data stream, with stdin because as long as the
+ application is running, stdin has no end.
Besides using QTextStream's constructors, you can also set the
device or string QTextStream operates on by calling setDevice() or