qt6-bb10/tests/auto/corelib
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
..
animation Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
codecs Changed unittests in corelib to use specific headers instead of super-headers. 2012-01-16 01:55:22 +01:00
concurrent Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
global Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
io Moved largefile unittest to same level as qfile. 2012-01-16 01:55:31 +01:00
itemmodels Changed unittests in corelib to use specific headers instead of super-headers. 2012-01-16 01:55:22 +01:00
kernel Add QModelIndex as a built-in metatype. 2012-01-11 19:32:34 +01:00
plugin Add V3(md5) and V5(sha1) version for DCE in QUuid 2012-01-10 05:12:20 +01:00
statemachine Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
thread Changed unittests in corelib to use specific headers instead of super-headers. 2012-01-16 01:55:22 +01:00
tools Enable QArrayData to reference external array data 2012-01-16 18:10:58 +01:00
xml Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
corelib.pro Move QAbstractItemModel into a separate directory. 2011-12-13 02:23:42 +01:00