qt5base-lts/tests/auto/corelib
Alexander Volkov de71c8a6f8 Add QTextStream::readLine() overload
The most common use case for QTextStream::readLine() is reading
a file line by line in a loop. The existing readLine() method
allocates new memory for each line, that results in a loss of
speed. The introduced overload can use already allocated memory.

Besides it allows you to not think about filesystem specifics.
The current QFile documentation suggests a separate way to read
files from /proc filesystem. With this overload it's possible
to use the same idiom in all cases:

    QTextStream in(&file);
    QString line;
    while (in.readLine(&line)) {
        process_line(line);
    }

The idea was inspired by the blog post of Ivan Čukić:
http://ivan.fomentgroup.org/blog/2014/10/03/api-design-and-impact-on-the-performance-qt-vs-stl-example/

Change-Id: I0c62b4a52681870589bc099905e83ed69e03dd40
Reviewed-by: Martin Smith <martin.smith@digia.com>
Reviewed-by: David Faure <david.faure@kdab.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2015-01-23 14:36:27 +01:00
..
animation Android: Stabilize QPauseAnimation test 2014-12-22 09:26:38 +01:00
codecs Hardcode UTF-8 for "unicode" in QTextCodec::codecForHtml(). 2014-10-28 12:17:13 +01:00
global Haiku: Make remaining auto tests compile on Haiku 2015-01-14 05:37:28 +01:00
io Add QTextStream::readLine() overload 2015-01-23 14:36:27 +01:00
itemmodels QSortFilterProxyModel: fix a regression 2015-01-17 06:32:37 +01:00
json Merge remote-tracking branch 'origin/5.4' into dev 2014-12-29 16:37:38 +01:00
kernel QAssociativeIterable: add find() 2015-01-21 11:23:43 +01:00
mimetypes Update license headers and add new license files 2014-09-24 12:26:19 +02:00
plugin Update license headers and add new license files 2014-09-24 12:26:19 +02:00
statemachine QState: Added template PointerToMemberFunction 2014-12-20 06:36:26 +01:00
thread QThreadPool::cancel() to remove individual jobs from the job queue. 2014-12-24 15:01:36 +01:00
tools Merge "Merge remote-tracking branch 'origin/5.4' into dev" into refs/staging/dev 2015-01-21 11:14:34 +01:00
xml Update license headers and add new license files 2014-09-24 12:26:19 +02:00
corelib.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00