qt6-bb10/tests/auto/corelib/kernel
Fabian Kosmale 3861ec735e QProperty: Add private isAnyBindingEvaluating function
To optimize certain operations, it can be useful to know whether we are
currently evaluating a binding. For instance, we have properties whose
storage is only alloctaed on-demand when they are set. However, we would
also allocate them if they are used in a binding context, as we would
otherwise not properly track the dependency. Using
isAnyBindingEvaluating in the getter, we can detect this
situation, and avoid the allocation if it returns false.

This API is private for now, as it exposes some internals of the
property system and should be used with care. As it needs to access the
TLS variable, it also has a non-negligible cost.

Change-Id: I373aabee644fe7020b2ffba7d6a0ad9a1e1b4ec0
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2021-01-21 17:00:29 +01:00
..
qcoreapplication Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qdeadlinetimer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qelapsedtimer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qeventdispatcher Remove the qmake project files 2021-01-07 15:32:28 +01:00
qeventloop Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmath Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmetacontainer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmetaenum Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmetamethod Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmetaobject Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmetaobjectbuilder Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmetaproperty Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmetatype Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmimedata Remove the qmake project files 2021-01-07 15:32:28 +01:00
qobject Add new special QObjectPrivate::{connect, disconnect} for QML 2021-01-18 15:54:03 +01:00
qpointer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qproperty QProperty: Add private isAnyBindingEvaluating function 2021-01-21 17:00:29 +01:00
qsharedmemory Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qsignalblocker Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsignalmapper Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsocketnotifier tst_socketnotifier: Fix timeout of QTcpServer::waitForNewConnection() 2021-01-21 08:53:35 +00:00
qsystemsemaphore Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtimer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtranslator Remove the qmake project files 2021-01-07 15:32:28 +01:00
qvariant QVariant::fromValue<T>: require T to be copy constructible 2021-01-18 15:51:18 +01:00
qwineventnotifier Remove the qmake project files 2021-01-07 15:32:28 +01:00
CMakeLists.txt Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00