qt6-bb10/tests/auto
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
..
android Android: Check XML output and optionally stop on fail. 2015-01-06 14:26:39 +01:00
bic/data
cmake Fix cmake test_moc_macro_target with namespace 2014-12-30 10:05:58 +01:00
compilerwarnings/data
concurrent Update license headers and add new license files 2014-09-24 12:26:19 +02:00
corelib Add QTextStream::readLine() overload 2015-01-23 14:36:27 +01:00
dbus Merge remote-tracking branch 'origin/5.4' into dev 2015-01-21 11:10:14 +01:00
gui Deprecate QFont:: rawMode()/setRawMode() 2015-01-23 14:06:03 +01:00
guiapplauncher
installed_cmake
network QSslSocket: introduce support for TLS PSK (client side) 2015-01-23 00:35:21 +01:00
opengl Change bugreports.qt-project.org -> bugreports.qt.io 2014-12-18 09:46:09 +01:00
other Merge "Merge remote-tracking branch 'origin/5.4' into dev" into refs/staging/dev 2015-01-21 11:14:34 +01:00
printsupport Fix QPrinter::setPaperSize regression when using QPrinter::DevicePixel 2015-01-19 10:39:55 +01:00
shared Android: Keyboard doesn't hide from done button 2014-10-25 07:19:35 +02:00
sql Correction on bound values in case of repeated QSqlQuery::execBatch 2015-01-16 13:14:26 +01:00
testlib Merge remote-tracking branch 'origin/5.4' into dev 2015-01-21 11:10:14 +01:00
tools Merge remote-tracking branch 'origin/5.4' into dev 2015-01-21 11:10:14 +01:00
widgets Merge "Merge remote-tracking branch 'origin/5.4' into dev" into refs/staging/dev 2015-01-21 11:14:34 +01:00
xml Fix QDomDocument::importNode() crashing on null nodes 2014-10-07 23:08:18 +02:00
auto.pro Temporarily disable the QtDBus tests if the session bus isn't available 2014-12-23 12:22:56 +01:00
network-settings.h Autotest: don't leak a socket every call to QtNetworkSettings::hasIPv6 2015-01-08 01:06:17 +01:00
qtest-config.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
test.pl Autotest: Find all autotests due to changed naming conventions 2015-01-16 08:14:55 +01:00