qt5base-lts/tests/auto
Marc Mutz 49b08f96e8 uic: use QStringLiteral() instead of QString::fromUtf8() where applicable
Many (most?) strings written aren't in fact UTF-8, and we can check at
compile-time which are and which aren't, so don't hard-code fromUtf8()
but use the much more efficient QStringLiteral() where applicable.

This is low-hanging fruit. This patch only optimises US-ASCII string
literals, not those that are latin-1 or even UTF-8, because that would
require more extensive changes to the original fixString() function.

Likewise, there are also other calls to QString::fromUtf8() being
generated (e.g. in the pixmap code) that could benefit from being
turned into QStringLiterals, but their code paths are more involved
than those this patch fixes.

This patch at least suffices in turning all the setObjectName()
arguments into QStringLiterals, which was the main goal.

The autotest baseline has been updated with the new expected results.

Change-Id: Ic1ef67f500f9ff92d36164d515f4e004ef2a10bc
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-02-20 15:17:08 +01:00
..
bic Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
compilerwarnings/data Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
concurrent Complete split of QtConcurrent. 2012-02-06 16:48:22 +01:00
corelib Add QMetaMethod::isValid() function 2012-02-20 11:28:38 +01:00
dbus Eliminate duplicate data row names in dbus, tools and xml autotests. 2012-02-16 02:00:52 +01:00
gui Fix qclipboard autotest on Windows. 2012-02-18 00:00:21 +01:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Changed qabstractnetworkcache unittest to use TESTDATA 2012-02-20 09:36:51 +01:00
opengl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
other Ensure that Qt public headers compile with strict flags 2012-02-17 16:42:28 +01:00
sql QSqlTableModel::commitAll(): replace row removal hack 2012-02-15 02:36:21 +01:00
testlib testlib: Report one test result per benchmark test. 2012-02-20 08:05:58 +01:00
tools uic: use QStringLiteral() instead of QString::fromUtf8() where applicable 2012-02-20 15:17:08 +01:00
widgets Set tst_qtoolbutton triggered function skipped. 2012-02-20 08:06:14 +01:00
xml Eliminate duplicate data row names in dbus, tools and xml autotests. 2012-02-16 02:00:52 +01:00
auto.pro Disable 'check' target generation for network autotests for Windows. 2012-02-17 11:48:08 +01:00
network-settings.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
platformquirks.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
test.pl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00