qt5base-lts/tests/auto
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
..
bic Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
compilerwarnings/data Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
corelib Enable QArrayData to reference external array data 2012-01-16 18:10:58 +01:00
dbus Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
gui Changed qrawfont unittest to work from installation directory. 2012-01-16 01:55:26 +01:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Fixed build break when bearer is disabled. 2012-01-16 11:29:04 +01:00
opengl Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
other Clean up and extend QAccessible::State. 2012-01-16 08:55:37 +01:00
sql Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
testlib Improve coverage of expectfail selftest 2012-01-13 04:04:17 +01:00
tools Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
widgets Flag tst_qmenubar tests as unstable. 2012-01-16 08:52:05 +01:00
xml Fix memory leak in QDomDocument entity text expansion 2012-01-10 02:01:41 +01:00
auto.pro Remove QtV8 library from QtBase 2012-01-09 19:54:07 +01:00
network-settings.h Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
platformquirks.h Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
test.pl Update copyright year in license headers. 2012-01-05 06:36:56 +01:00