Go to file
Thorbjørn Lindeijer e8ac3549c5 Added QStringRef::toLatin1 and QStringRef::toUtf8
These helper functions make it convenient to avoid making an unnecessary
copy of the string before converting it to a QByteArray. The current
most obvious way to do this would be:

  // QStringRef text
  QByteArray latin1 = text.toString().toLatin1();

Though the copy can also be avoided by doing:

  const QString textData =
      QString::fromRawData(text.unicode(), text.size());
  QByteArray latin1 = textData.toLatin1();

Now the faster method can be achieved using the new obvious way:

  QByteArray latin1 = text.toLatin1();

Reviewed-by: Thiago Macieira
Reviewed-by: Robin Burchell
(cherry picked from commit feabda665de62a0f6a82d831b45926697f30b45b)
2011-05-10 12:54:50 +02:00
bin Improve logic to find default certificates in createpackage script 2011-05-10 12:54:46 +02:00
config.profiles Fixed Qt UDA creation for Symbian 2011-05-10 12:54:47 +02:00
config.tests Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
demos Move private headers into versioned subdirectory 2011-05-02 15:30:08 +02:00
dist Changelog: Qt Designer 4.8 2011-05-05 16:17:50 +02:00
doc/src Removing the "resetInternalData" slot in QAbstractProxyModel 2011-05-10 12:54:49 +02:00
examples Removed examples and demos that are no longer in qtbase. 2011-04-27 12:06:02 +02:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs Fix "make sis" for projects that have empty OBJECTS_DIR 2011-05-10 12:54:45 +02:00
qmake Fix Makefile subtargets 2011-05-07 03:19:51 +00:00
src Added QStringRef::toLatin1 and QStringRef::toUtf8 2011-05-10 12:54:50 +02:00
tests Fix warning (unused variable) in QAccessibility test. 2011-05-10 12:54:50 +02:00
tools QtUiTools: Remove Q3Support. 2011-05-06 09:33:45 +02:00
util Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
.gitattributes Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
.gitignore Add .gitignore to each module 2011-04-27 12:06:07 +02:00
.tag Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
configure Add qglobal.h exports for QtLocation & QtSensors 2011-05-09 15:34:25 +10:00
configure.exe new configure.exe binary 2011-05-03 14:49:38 +02:00
header.BSD Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
header.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
header.LGPL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
header.LGPL-ONLY Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
INSTALL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.LGPL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro Install syncqt, and ensure it runs fine for external modules 2011-05-02 15:30:08 +02:00
sync.profile Added dependency information to the sync.profile. 2011-04-27 12:34:11 +02:00