qt5base-lts/tests/auto/corelib
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
..
animation tst_qsequentialanimationgroup.cpp: Avoid some memory leaks 2021-01-21 14:40:42 +01:00
global Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
io Android: skip tst_QFile::moveToTrash() 2021-01-19 13:17:55 +00:00
itemmodels Make sure QMimeData is fully declared 2021-01-11 16:57:41 +01:00
kernel QProperty: Add private isAnyBindingEvaluating function 2021-01-21 17:00:29 +01:00
mimetypes Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
plugin Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
serialization Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
text QLocale: Allow direct conversion to language, country, and script codes 2021-01-18 15:52:31 +01:00
thread tst_QThreadPool: avoid a potential memory leaks 2021-01-19 14:17:55 +01:00
time Correct string comparison in Android's IANA ID matching code 2021-01-18 15:55:15 +01:00
tools QCache: when overwriting, store the new cost instead of the delta 2021-01-14 10:00:01 +00:00
CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00