qt6-bb10/tests/auto/corelib/tools
João Abecasis f4c1e2c40f Enable QArrayData to reference external array data
By default, QTypedArrayData::fromRawData provides the same semantics as
already exist in QByteArray and QString (immutable, sharable data), but
more combinations are possible. In particular, immutable-unsharable
leaves the data owner in control of its lifetime by forcing deep copies.

As part of this, a new isMutable property is introduced in QArrayData.
This could be taken to be implicit in statics that are initialized with
a proper size but with alloc set to 0. QStringLiteral and QByteLiteral
already did this, forcing re-allocations on resize even before the
(static, thus shared) ref-count is considered.

The isMutable property detaches data mutability and shared status, which
are orthogonal concepts (at least in the unshared state). For the time
being, there is no API to explicitly (re)set mutability, but statics and
RawData mark data immutable.

Change-Id: I33a995a35e1c3d7a12391b1d7c36095aa28e221a
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2012-01-16 18:10:58 +01:00
..
qalgorithms Remove the Q_TYPENAME define. 2012-01-08 23:54:56 +01:00
qarraydata Enable QArrayData to reference external array data 2012-01-16 18:10:58 +01:00
qbitarray Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qbytearray Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qbytearraymatcher Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qcache Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qchar Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qcontiguouscache Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qcryptographichash Changed unittests in corelib to use specific headers instead of super-headers. 2012-01-16 01:55:22 +01:00
qdate Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qdatetime Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qeasingcurve Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qelapsedtimer Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qexplicitlyshareddatapointer Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qfreelist Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qhash Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qline Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qlist Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qlocale Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qmap Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qmargins Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qpoint Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qqueue Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qrect Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qregexp Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qringbuffer Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qscopedpointer Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qscopedvaluerollback Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qset Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qsharedpointer Avoid using 'check' in QSharedPointer test. 2012-01-09 19:04:57 +01:00
qsize Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qsizef Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qstl Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qstring Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qstringbuilder Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qstringlist Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qstringmatcher Remove redundant class from QStringMatcher test. 2012-01-06 07:50:21 +01:00
qstringref Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qtextboundaryfinder Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qtime Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qtimeline Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qvarlengtharray Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qvector Merge remote-tracking branch 'gerrit/master' into containers 2012-01-16 17:53:41 +01:00
tools.pro Introducing QArrayData 2011-12-06 16:57:17 +01:00