aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlworkerscript/qquickworkerscript.cpp
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2024-12-03 11:11:07 +0100
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2024-12-05 23:24:30 +0100
commit979b8ba66ffbf6bb07844ec9a52f8aa5dc5189ca (patch)
treeacb9580139c73c3cb18399ffa5fcc04c3572f5e6 /src/qmlworkerscript/qquickworkerscript.cpp
parent5e0006c31b8879898872d2d6cb0ffdd320c7a4c4 (diff)
TableView: only create attached object when used
As it stood, we created an attached TableView delegate for every delegates inside a TableView, even if they were never used. This was not the intention from the start, and must have been an oversight. Instead, we want to reduce memory overhead for each delegate, and only create attached objects on a per-need basis. This was also the rationale behind using required properties over attached properties, to avoid having to allocate so many extra attached objects (one for each cell). This patch will therefore avoid creating attached objects for every delegate, and instead resolve the TableView.view property when the attached object is actually constructed (if ever). Change-Id: I69528371e59d7ef4007f63029db9a46a41c40d0b Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
Diffstat (limited to 'src/qmlworkerscript/qquickworkerscript.cpp')
0 files changed, 0 insertions, 0 deletions