summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@nokia.com>2010-03-10 09:05:53 (GMT)
committerMorten Johan Sørvig <morten.sorvig@nokia.com>2010-03-10 09:05:53 (GMT)
commita0ec41037fcbb686dfc5c4679261bffc5e358fdd (patch)
treefda0f01c3aebbfe6f4ab32c76f92702e537a5bca /src/corelib/io
parent3a1e96fc9d5844583138d183e95e127a034daf56 (diff)
parent12d63b05a942281e688d857d17c190564c77b698 (diff)
downloadQt-a0ec41037fcbb686dfc5c4679261bffc5e358fdd.zip
Qt-a0ec41037fcbb686dfc5c4679261bffc5e358fdd.tar.gz
Qt-a0ec41037fcbb686dfc5c4679261bffc5e358fdd.tar.bz2
Merge remote branch 'origin/4.7-cutoff' into 4.7
Diffstat (limited to 'src/corelib/io')
-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 9e79894..b1c403f 100644
--- a/src/corelib/io/qtextstream.cpp
+++ b/src/corelib/io/qtextstream.cpp
@@ -70,7 +70,7 @@ static const int QTEXTSTREAM_BUFFERSIZE = 16384;
have reached the end of the data stream, with stdin. The reason for this is
that as long as stdin doesn't give any input to the QTextStream, \c atEnd()
will return true even if the stdin is open and waiting for more characters.
-
+
Besides using QTextStream's constructors, you can also set the
device or string QTextStream operates on by calling setDevice() or
setString(). You can seek to a position by calling seek(), and
@@ -1196,6 +1196,7 @@ bool QTextStream::seek(qint64 pos)
resetCodecConverterStateHelper(&d->writeConverterState);
delete d->readConverterSavedState;
d->readConverterSavedState = 0;
+ d->writeConverterState.flags |= QTextCodec::IgnoreHeader;
#endif
return true;
}